Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp query meta in array

$args = array(
    'post_type' => 'news',
    'meta_query' => array(
        array(
            'key' => 'topics',
            'value' => array ( 'sports', 'nonprofit', 'community' ),
            'compare' => 'IN'
        )
    )
);
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wp #query #meta #array
ADD COMMENT
Topic
Name
6+1 =