Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$meta_query_args = array(
'meta_query' => array(
'relation' => 'AND',
array(
array(
'key' => 'city_name',
'value' => array('New York City', 'London', 'San Francisco'),
'compare' => 'IN'
),
array(
'key' => 'featured_post',
'value' => true,
'compare' => '='
)
)
)
);
$meta_query = new WP_Query( $meta_query_args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment