order terms by count
-
The query below is supposed to return terms, ordered by count, but it doesn’t work when the plugin is enabled. When I disable the plugin it works.
get_terms('priority-tags', [ 'hide_empty' => false, 'orderby' => 'count', 'order' => 'DESC', 'number' => 5, 'menu_order' => false ]);
Is there a way to force the query to ignore the menu_order?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘order terms by count’ is closed to new replies.