Ordering terms by description
-
Hey all,
I’d been looking in to custom ordering a list of terms in a taxonomy, and it turns out it’s pretty easy but it is not documented in the Function Reference for
get_terms
.Any one wishing to do this should can use the ‘Description’ field to give all the terms a description that can be ordered (1, 2, 3, etc being the easiest) and then simply use the argument ‘orderby=description’.
Would be very useful if WP can documnet this in the function reference for future use.
- The topic ‘Ordering terms by description’ is closed to new replies.