Skip Navigation

[Resolved] Use a Content Template for Search and Pagination controls

This support ticket is created 5 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Ben 5 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#1209393

Ben

Is it possible to use a Content Template for Search and Pagination controls? So I can design one set of controls and display them in multiple Views?

If this isn't possible, then is there any way that I can achieve the same result? Having a uniform set of Search and Pagination controls that I can edit and control from one place only.

#1209629
Screen Shot 2019-03-04 at 1.08.48 PM.png

It's probably not a good idea to try this in wp-admin because the filters in Search / Pagination controls and the Query Filters in each View are tightly coupled, and changes in one area must be reflected in the other area. So if you are using the Filter Controls from View A and the Query Filter settings from View B, the results might be unexpected if those configurations get out of sync.

When you insert a custom search View, the popup window will give you the ability to insert the filters and the results, or just the filters, or just the results. If the Views don't use AJAX, then you could place only the filters from View A on a page with only the results from View B. This approach works if the Query Filters for Views A and B are configured to use the same URL parameters where there is overlap, and works best with the option "Always show all values for inputs" as described here: https://toolset.com/documentation/user-guides/front-page-filters/advanced-settings-custom-search/

#1209651

Ben

Thank you for your reply Christian!

I think in this instance it might be more hassle than it's worth. So I will keep them synced manually.