Wp Query Meta In Array

$args = array(
 'post_type' => 'news',
 'meta_query' => array(
 array(
 'key' => 'topics',
 'value' => array ( 'sports', 'nonprofit', 'community' ),
 'compare' => 'IN'
 )
 )
);

Leave a Comment