Navigation überspringen

[Gelöst] arrange taxonomies in filter by post count

This support ticket is created vor 5 Jahren, 3 Monaten. 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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Ido Angel vor 5 Jahren, 3 Monaten.

Assistiert von: Shane.

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

Sprachen: Englisch (English )

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