Order Category Terms by Post Count

I’m attempting to find a way to display 10 of the categories with the largest number of posts. I’ve been able to display 10 categories along with their post count (see below), but no luck with ordering them by post count.

I’ve attempted to create a custom query string as a provider, but no luck. This is what I have so far taxonomy=eat_drink_dir_cat&orderby=count&order=desc.

The custom post type taxonomy name is eat_drink_dir_cat

How can I get all the categories of a custom post type and order them by post count?

Hello @santosfel5,

Thanks for writing in. Please be advised the the Looper Provider Query String can only be used to display the post items. In the displaying the categories, you may use Looper Provider Current Post Terms or the Looper Provider All Terms. Regretfully we do not have an option to display the categories according to the number of post items assigned to the category or post count. The categories will be displayed in alphabetical order.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.