Created
January 31, 2012 11:17
-
-
Save Ahrengot/1709968 to your computer and use it in GitHub Desktop.
WordPress database query looking for specific keys and values
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
$default_query = array( | |
'posts_per_page' => -1, | |
'post_type' => 'kunstnere', | |
'order' => 'ASC', | |
'orderby' => 'meta_value', | |
'meta_key' => 'artist_meta_time_input', | |
'meta_query' => array( | |
array( | |
'key' => 'artist_meta_scene_select', | |
'value' => 'Scene 1', | |
'compare' => '=' | |
), | |
array( | |
'key' => 'artist_meta_day_select', | |
'value' => $day, | |
'compare' => '=' | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment