Skip Navigation

[Resolved] arrange taxonomies in filter by post count

This support ticket is created 5 years 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 – 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)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by Ido Angel 5 years ago.

Assisted by: Shane.

Author
Posts
#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

Languages: English (English )

Timezone: 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