Skip Navigation

[Resolved] I need to simply display a sorting tool of categories on a View.

This support ticket is created 4 years, 8 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1639279

Tell us what you are trying to do? On this page for example hidden link . I want a dropdown of my catetgories they can sort by (painting, flooring, etc.) and if they choose the category to dynamically show only the advertisers in that category.

Is there any documentation that you are following? I've tried to find documentation for what seems to be a simple function.

Is there a similar example that we can see? Just my explanation above. I need all my advertiser pages to have this category sorting/search function.

What is the link to your site? hidden link

#1639383

Hello,

You can follow our document to setup a post view with custom search form:
https://toolset.com/documentation/user-guides/views/front-page-filters/

And display the taxonomy filter "category" as select:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-control-post-taxonomy
type (opt):
'checkbox' | 'checkboxes' | 'date' | 'datepicker' | 'radios' | 'select' | 'textfield' | 'multi-select'

And Toolset Views/Blocks plugin is using WordPress class WP_Query to query posts, there isn't such an option to order the result by taxonomy, see WP document:
https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters