Skip to main content

Filter widgets

Filters are added on a View's Filters tab. Each one has a Select type that decides which widget it is. Widgets marked attribute need an Included Attribute: a field from the view's index to filter on.

Meta filters​

Meta filters work on the content in your index.

WidgetAttributeUse it for
Search BoxThe search field. Set its Placeholder text.
AutocompleteA search field with a suggestions dropdown. See Autocomplete. Use it instead of a Search Box, not alongside one on the same index.
Refinement ListYesPicking several values from a list of checkboxes.
MenuYesPicking one value from a list.
Menu SelectYesPicking one value from a dropdown.
Toggle RefinementYesA single checkbox that switches one condition on or off. Set its Checkbox label and the On value it filters for.
Sort ByLetting visitors change the sort order. See below.
Current RefinementsShowing the filters that are active, each with a way to remove it.
Clear RefinementsA button that resets every filter.
Powered By (Algolia)The Algolia logo. Required on Algolia's free Build plan. Choose the logo for a light or dark background.

Refinement List, Menu and Menu Select also support preselected values, renamed facet values and custom sort orders. See Filter settings.

User filters​

User filters narrow results by the visitor's own relationship to the content, such as courses they're enrolled in. They're listed separately under User Filters and use the [tgbl_searchsync_user_filter] shortcode.

WidgetNeedsUse it for
Course Statuses Refinement ListLearnDashFiltering by not started, in progress or completed.
Enrollment Status Refinement ListLearnDashFiltering by enrolled, not enrolled or completed.
Favorites ("Only show my favorites")Tangible FavoritesA toggle that shows only the visitor's favourites.

For each status list, choose which statuses to include. See Integrations for how personalised filtering works.

Sort By​

A Sort By widget lists the sort orders visitors can choose from. Each row has a Label and the Index to sort by; set the Default Sort Index for the initial order. How sorting works depends on your backend:

BackendHow to sort
AlgoliaPick a replica index as-is. Create replicas from the index's Sort orders panel.
MeilisearchAdd a Sort Suffix such as post_date:desc. The field is made sortable the next time index settings are pushed.
LocalAdd a Sort Suffix using sort_text, sort_date or sort_number. Other fields fall back to relevance.