Created
January 7, 2014 02:33
-
-
Save srhise/8293818 to your computer and use it in GitHub Desktop.
Wordpress Query Examples
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
$meta_query_args = array( | |
'relation' => 'OR', // Optional, defaults to "AND" | |
array( | |
'key' => '_my_custom_key', | |
'value' => 'Value I am looking for', | |
'compare' => '=' | |
) | |
); | |
$meta_query = new WP_Meta_Query( $meta_query_args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment