Saltar navegación

[Cerrado] ordering a filter

This support ticket is created hace 3 años, 3 meses. 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.

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Nigel hace 3 años, 3 meses.

Autor
Mensajes
#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
Colaborador

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.

El debate ‘[Cerrado] ordering a filter’ está cerrado y no admite más respuestas.