Skip Navigation

[Closed] ordering a filter

This support ticket is created 2 years, 10 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.

Our next available supporter will start replying to tickets in about 2.97 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 2 years, 10 months ago.

Author
Posts
#2270811
Screen Shot 2022-01-19 at 3.48.16 PM.png

Hello - How can I order a filter by slug (or some other way?)

I tried [wpv-control taxonomy="month" url_param="wpv-month" type="select" default_label="All" hide_empty="false" orderby="slug"] but no luck. I have the slug named in the order I would like (i.e. 01_january, 02_feb, 03_march)

Thanks!

#2271115

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screenshot 2022-01-20 at 07.55.02.png

The correct shortcode to output a taxonomy filter is wpv-control-post-taxonomy, and it does accept slug as an option for the orderby argument: https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-control-post-taxonomy

The option can be set when inserting the filter (screenshot).

Try updating your search filter to use that shortcode.

The topic ‘[Closed] ordering a filter’ is closed to new replies.