Order By Parameters
-
Hi there, how can I use multiple orderby query -> http://core.trac.wordpress.org/ticket/17065
in concrete? I would like to sort my post by a custom field and by title. I need post with custom field before the others.
This is what I actually have:$args = array( 'post_type' => 'professionisti', 'showposts' => 9, 'paged' => $paged, 'meta_key' => 'professionista_premium', 'orderby' => 'meta_value title', 'order' => 'ASC' );
but it show me the “professionista_premium” after default ones.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Order By Parameters’ is closed to new replies.