All Questions
4
questions
1
vote
1
answer
336
views
Order wordpress taxonomy parent terms by their children count
I need to order parent terms by their children count:
function sort_terms_by_children_count ( $terms ) {
$sort_terms_by_children_count = array();
foreach($terms as $term) {
$count = ...
1
vote
0
answers
783
views
Custom taxonomy/category order
My products are sort by menu_order, but I would like to sort category name too. I tried a few plugins and all doesn't works.
Code, which display category name and products list:
<?php $...
0
votes
1
answer
1k
views
Natural sort / ordering wp_dropdown_categories
I'm using the following code to display an archive dropdown:
wp_dropdown_categories( 'taxonomy=week&hierarchical=1&orderby=name' );
However the format of the taxonomy is week-1, week-2 .....
7
votes
5
answers
9k
views
Different post sort order within different categories
I need to give each post a unique post order for multiple Categories (per post) it is in. I can imagine a solution using custom fields whereby for each Category there is a corresponding custom field ...