Skip to main content

Results and pagination

Results​

A View's results are set in the editor sidebar, under Results Settings:

FieldWhat it does
Widget TypeHits shows numbered pages; Infinite Hits shows a list that grows as visitors ask for more.
Hits Per PageHow many results to load at a time.
ColumnsAuto (up to 5), or a maximum of 1 to 5. The grid still steps down on narrow screens.

How each result looks is set on the Card Template tab. Place the results with:

[tgbl_searchsync_hits view="your-view"]

Pagination​

On the Pagination tab, add an item and give it a Pagination Name. Its Type is one of:

  • Pagination: page links. Under Display Options, choose Show Previous, Show Next, Show First and Show Last. Previous and Next are on by default.
  • Hits Per Page: a dropdown that lets visitors choose how many results to see. Add a Label and Value for each choice; the first is the default.

Switch on Generate Shortcode to get its shortcode:

[tgbl_searchsync_pagination view="your-view" name="your-pagination-name"]

Meta data​

The Meta Data tab adds a results summary. Add a Stats item, give it a Meta Name and pick a Stats Template:

TemplateLooks like
Count1,234 Courses
RangeShowing 1 - 20 of 1,234 Courses
PagePage 3 of 62

Switch on Show search query to add what the visitor searched for, and Show processing time to add how long the search took. The preview shows how the summary reads with no results, one result and many.

The summary uses the view's Result Singular Label, Result Plural Label and "Nothing Found" Message from the sidebar. Place it with:

[tgbl_searchsync_metadata view="your-view" metadata="your-meta-name"]
Custom stats templates

Themes can add their own templates: put JavaScript modules in searchsync/stats-templates/ in your active theme and they appear under My Templates.