Admin Taxonomy list orderby 2 fileds
-
Is it possible to order a taxonomy, in the admin, by 2 fields?
I’m trying to achieve the same functionality as if I had clicked on a sort by link at the top of each taxonomy list column (name, description, slug, count) and then still be able to sort by SCPO.
In my case I’d like to order firstly by the taxonomy description then my the SCPO order. The description in my taxonomy simply has the name of another taxonomy term in. I simply want to group all terms with same description together then alter the ordering within that grouping. So the list should be:
– name / description
– term_3 / another_tax_term_1
– term_1 / another_tax_term_1
– term_5 / another_tax_term_1
– term_2 / another_tax_term_2
– term_6 / another_tax_term_2
– term_4 / another_tax_term_2
– term_7 / another_tax_term_3
– term_8 / another_tax_term_3I’ve attempted to use the
get_terms_args
andget_terms_orderby
filters but they don’t work if SCPO plugin is active.
WP_Term_Query implies that more than one field can be used to order taxonomies:
‘orderby’ (string) Field(s) to order terms by.Cheers
- The topic ‘Admin Taxonomy list orderby 2 fileds’ is closed to new replies.