Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = [
- 'post_type' => 'tq_team',
- 'posts_per_page' => -1,
- 'meta_key' => 'priority',
- 'orderby' => [
- 'meta_value_num' => 'ASC',
- 'title' => 'ASC'
- ]
- ];
- $the_query = new WP_Query( $args );
- // but how to order by multiple meta keys?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement