Skip Navigation

[Resuelto] arrange taxonomies in filter by post count

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

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Ido Angel hace 5 años.

Asistido por: Shane.

Autor
Mensajes
#1384249

Hey,
I have a taxonomy filter of "academic-area":

[wpv-control-post-taxonomy taxonomy="academic-area" type="checkboxes" format="%%NAME%% <em>(%%COUNT%%)</em>" url_param="wpv-academic-area"]

There are many "academic areas" - more than a hundred - and I would like the filter to display according to the post count in each term, so that the taxonomy with the most posts in it would show first (is the filter, not the results). Right now it is showing according to name.
Any ideas?
thanks!
Ido

#1384337

Shane
Supporter

Idiomas: Inglés (English )

Zona horaria: America/Jamaica (GMT-05:00)

Hi Ido,

Thank you for getting in touch.

What you can do is to add this attribute to your filter orderby="count"

It should order your taxonomies by their count.

Thanks,
Shane

#1384373

Thanks Shane!
Also added "order="DESC" to complete this.
Cheers,
Ido