Created
September 8, 2012 19:09
-
-
Save anonymous/3678753 to your computer and use it in GitHub Desktop.
WP_Query, Orderby two fields
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$args = array | |
( | |
'cat' => 12, | |
'posts_per_page' => 50, | |
'orderby' => 'title meta_value_num', | |
'meta_key' => 'sqft', | |
'order' => 'ASC' | |
); | |
$query = new WP_Query( $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment