Crouton Documentation

Crouton defines the following shortcodes.

  • [bmlt_tabs] — generates a tabbed meeting list
  • [crouton_map] — generates a map-based interface from which geographic queries can be made. See “Map Search” below for details
  • [bmlt_map] — generates a map-based interface suitible for mobile devices. Queries to the BMLT database, along with the available filters, are control by the usual [bmlt_tabs] parameters.
  • [meeting_count]
  • [group_count]
  • [service_body_names]
  • [bmlt_handlebar]

Example: There are currently [group_count] groups, offering a total of [meeting_count] meetings per week.

Hints: you can only have one occurrence of [bmlt_tabs] on a page — if you want two lists,
use two different pages. The [service_body_names] shortcode is useful for generating tabbed UIs for multiple
service bodies (see the “URL Parameters” section).

Detailed instructions for the shortcode parameters follow.

This feature will provide the capability to re-use one page to generate a Tabbed UI that can be used by multiple service bodies.

Example: without this feature, a Region might have separate pages for each Area with a Tabbed UI.

Instead: One page can be used to display a Tabbed UI for all Areas.

This can also be used to provide a reusable meetings page on a regional or zonal site that can be called from area websites that for some reason are having trouble implementing crouton on their own sites.

  1. Use [service_body_names] as part of the page’s heading, to say which meetings are listed.
  2. Then insert [bmlt_tabs].
  3. Link to that page using parameters as described below, either from another page on the same website or from a different website.

You can override any shortcode value. You can also use two special values `this_title` and `sub_title` to set titles on your querystring to reuse a page easily. Note: this only works for WordPress based crouton, not croutonjs.

Please study the following URLs to get acquainted with the URL parameter structure.

Meetings for One Area.

https://bmltproject.org/crouton-sample/?root_server=https://bmlt.sezf.org/main_server&service_body=44&this_title=Crossroads%20Area%20Meetings

Meetings for Two (or more) Areas.

https://bmltproject.org/crouton-sample/?root_server=https://bmlt.sezf.org/main_server&service_body=44,45&this_title=Crossroads%20Area%20and%20Down%20East%20Area%20Meetings

Meetings for One Region.

https://bmltproject.org/crouton-sample/?root_server=https://bmlt.sezf.org/main_server&service_body_parent=43&this_title=North%20Carolina%2-Region%20Meetings

Title, meeting and group count have unique CSS classes that can be used for custom styling.

With this parameter you can configure the time format.

[bmlt_tabs time_format="HH:mm"]

“HH:mm” = 24 Hour Time Format (14:00)

“h:mm a” = 12 Hour Time Format (2:00 PM) (Default)

Default is 12 Hour Time Format

Refer to the Moment.JS Date function for other ways to configure the time.

With this parameter you can change the first day of the week. Useful for other countries where the day doesn’t start with Sunday.

[bmlt_tabs int_start_day_id="1"]

1 is the default which is Sunday. 2 is Monday and so on.

For all shortcodes the service_body parameter is optional.

When no service_body is specified the default service body will be used.

[bmlt_tabs service_body="2,3,4"]

service_body = one or more BMLT service body IDs.

Using multiple IDs will combine meetings from each service body into the crouton interface.

[bmlt_tabs service_body_parent="1,2,3"]

service_body_parent = one or more BMLT parent service body IDs.

An example parent service body is a Region. This would be useful to get all meetings from a specific Region.

You can find the service body ID (with shortcode) next to the Default Service Body dropdown above.

You cannot combine the service_body and parent_service_body parameters.

Use a different Root Server.

[bmlt_tabs service_body="2" root_server="https://bmlt.sezf.org/main_server"]

Useful for displaying meetings from a different root server.

Hint: To find service body IDs enter the different root server into the “BMLT Root Server URL” box and save.

Remember to enter your current Root Server back into the “BMLT Root Server URL”.

With this parameter you can initially view meetings by Weekday or any other field, as long as the button_filters_option was added ahead of time.

[bmlt_tabs view_by="weekday"]

weekday = view meetings by Weekdays (default)

Another example could be “location_municipality”, which would show city if it were available as a button.

With this parameter you can include specific buttons.

[bmlt_tabs button_filters_option="City:location_municipality"]

You can also include multiple buttons with a comma after each pair. Keep in mind that the first part is the word for the button. If using multilingual option, that word must have a translation.

The “City” button shown in the example above is defined by default. To disable it, you may use:

[bmlt_tabs include_city_button="0|1"]

0 = exclude City button

1 = include City button (default)

With this parameter you can include specific buttons.

[bmlt_tabs button_format_filters_option="Common Needs:FC3"]

[bmlt_tabs button_format_filters_option="Languages:LANG"]

You can also include multiple buttons with a comma after each pair. Keep in mind that the first part is the word for the button. If using multilingual option, that word must have a translation.

With this parameter you can display meetings without weekday tabs.

[bmlt_tabs has_tabs="0|1"]

0 = display meetings without tabs

1 = display meetings with tabs (default)

Hiding weekday tabs is useful for smaller service bodies.

With this parameter you can keep weekday tabs on dropdown filtering.

[bmlt_tabs filter_tabs="0|1"]

0 = display meetings without tabs on dropdown filtering.

1 = display meetings with tabs on dropdown filtering.

Displaying tabs on filtering is useful when you have a large amount of results for each day on a dropdown selection.

The header will show dropdowns.

[bmlt_tabs header="0|1"]

0 = do not display the header

1 = display the header (default)

This feature will hide the Weekday headers that are shown if filtering.

[bmlt_tabs hide_byday_headers="0|1"]

0 = do not display the headers

1 = display the headers (default)

With this parameter you can show or hide the dropdowns.

[bmlt_tabs has_days='0|1' has_cities='0|1' has_groups='0|1' has_areas='0|1' has_regions='0|1' has_locations='0|1' has_sub_province='0|1' has_states='0|1' has_zip_codes='0|1' has_formats='0|1' has_neighborhoods='0|1' has_venues='0|1' has_languages='0|1' has_common_needs='0|1']

0 = hide dropdown (default, for has_languages and has_common_needs)

1 = show dropdown (default, for all options other than has_languages and has_common_needs)

With this parameter you can set the default filter for dropdowns.

[bmlt_tabs default_filter_dropdown="formats=closed"]

Any of the dropdown choices are available for use. Keep in mind that the dropdown must be visible and that the default selection exists. Spaces should be separated with a hyphen. Example [bmlt_tabs default_filter_dropdown="formats=Basic-Text"].

With this parameter you can change the width of the dropdowns.

[bmlt_tabs service_body="2" dropdown_width="auto|130px|20%"]

auto = width will be calculated automatically (default)

130px = width will be calculated in pixels

20%” = width will be calculated as a percent of the container width

With this parameter you can exclude meetings in one or more zip codes.

[bmlt_tabs exclude_zip_codes="32750,32801,32714,etc"]

Warning: Meetings without zip codes will not be excluded.

Note: Be sure to “use exclude_zip_codes” in Group and Meeting Count shortcodes (below).

Will return the number of meetings in the BMLT query.

[meeting_count]

[meeting_count live="0|1"]

By default, [meeting_count] returns the total number of meetings in the BMLT query. By setting “live” to “1”, the number displayed will be updated to reflect the current filters selection. So, to get the number of meetings in an area, select the area in the appropriate filter and both the table and the meeting count will be updated.

[group_count]

[group_count live="0|1"]

By default, [group_count] returns the total number of groups in the BMLT query. By setting “live” to “1”, the number displayed will be updated to reflect the current filters selection. So, to get the number of groups in an area, select the area in the appropriate filter and both the table and the group count will be updated.

You can sort the results in the response.

[bmlt_tabs sort_keys="start_time"]

start_time = (default)

Note: this option does not work with distance searches that are sorted.

With this parameter you can display meetings that within the distance of the browser location, or return a number of results from the current distance.

[bmlt_tabs distance_search="0"]

0 = don’t run a distance search (default)

1 or higher = the distance in miles of results (or km if distance_units is set to km)

-1 or lower = the number of results to return sorted by distance from the location

With this parameter you can display the users distance to meetings under the map link button.

[bmlt_tabs show_distance="0|1"]

0 = don’t display distance to meeting (default)

1 = display distance to meeting

User has to have geolocation permissions turned on.

You can set the distance units by specifying distance_units=”mi|km|nm” (Miles are default).

With these parameters you can adjust the time for a specific timezone.

[bmlt_tabs auto_tz_adjust="0|1"]

0 = do not adjust timezone

1 = adjust timezone relative to `base_tz` parameter

[bmlt_tabs base_tz="UTC"]

If no option is set, timezone will be assumed to the local PC time.

In the example above, setting to UTC will inform the browser that each time is in UTC. In conjunction with auto_tz_adjust parameter, time will be shown relative to that.

With this parameter you can include unpublished meetings. You could also use a custom query to accomplish this by adding “&advanced_published=0” into your query.

[bmlt_tabs include_unpublished="1"]

You can also set this to only include unpublished with the following.

[bmlt_tabs include_unpublished="-1"]

BMLT Project
A nonprofit organization. We build and give away free, open-source software that helps people find addiction-recovery meetings.

2463 N Main St, Ste C, PMB #187
Summerville, SC 29486-8904

BMLT Project is a 501(c)(3) tax-exempt organization. EIN 43-2750439.

© 2026 BMLT Project