get_terms() orderby term meta?
-
I have query setup like so:
$taxonomy = 'media_archive_categories'; $parent = 135; $args = array( 'taxonomy' => $taxonomy, 'orderby' => 'id', 'order' => 'DESC', 'parent' => $parent, 'hide_empty' => true, 'number' => 9 ); $terms = get_terms($args); // Get all terms of a taxonomy
I would though like to orderby a meta field named ‘media_archive_category_date’ that has a format of ‘Y-m-d H:i:s’ (normal WP date format). Any ideas how to do this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_terms() orderby term meta?’ is closed to new replies.