Passer la navigation

[Fermé] ordering a filter

This support ticket is created Il y a 3 années et 7 mois. 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.

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Nigel Il y a 3 années et 7 mois.

Auteur
Publications
#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

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01: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.

Le sujet ‘[Fermé] ordering a filter’ est fermé à de nouvelles réponses.