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.
| Shortcode | Legacy name | Attributes |
|---|---|---|
tgbl_searchsync_hits | tgbl_algolia_hits | view (required) |
tgbl_searchsync_filter | tgbl_algolia_filter | view (required); name for one filter, or leave it out for the grouped display. Legacy alias: filter |
tgbl_searchsync_user_filter | tgbl_algolia_user_filter | view, name (both required). Legacy alias: user_filter |
tgbl_searchsync_pagination | tgbl_algolia_pagination | view, name (both required). Legacy alias: pagination |
tgbl_searchsync_metadata | tgbl_algolia_metadata | view, 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.