Skip to main content

Shortcodes

All shortcodes take the view's slug in view. Names are matched without regard to case, with spaces treated as hyphens. For a walkthrough, see Shortcodes in the guides.

ShortcodeLegacy nameAttributes
tgbl_searchsync_hitstgbl_algolia_hitsview (required)
tgbl_searchsync_filtertgbl_algolia_filterview (required); name for one filter, or leave it out for the grouped display. Legacy alias: filter
tgbl_searchsync_user_filtertgbl_algolia_user_filterview, name (both required). Legacy alias: user_filter
tgbl_searchsync_paginationtgbl_algolia_paginationview, name (both required). Legacy alias: pagination
tgbl_searchsync_metadatatgbl_algolia_metadataview, metadata (both required). name is not accepted here

Legacy names are permanent aliases: both names run the same code.

Search boxes, autocomplete, sort menus and the other filter widgets don't have shortcodes of their own. Add them as filters in a view and place them with tgbl_searchsync_filter.