Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp query meta in array

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

PREVIOUS NEXT
Code Example
Php :: php count 
Php :: Warning: sprintf(): Too few arguments in /opt/lampp/htdocs/wordpress/wp-admin/includes/class-bulk-upgrader-skin.php on line 152 
Php :: csv utf-8 excel into php 
Php :: how to combine variables and text into a string php 
Php :: New Laravel Devcontainer Project Setup 
Php :: laravel insert array 
Php :: php set environment variable 
Php :: laravel database seeder medium 
Php :: php object 
Php :: file could not be downloaded: Unable to find the wrap per "https" - did you forget to enable it when you configured PHP? failed to open stream: No such file or directory 
Php :: php tomorrow 
Php :: get post in php 
Php :: laravel drop foreign column 
Php :: openssl encrypt php with key 
Php :: time function in php 
Php :: how to remove array index from json in php 
Php :: array intersect 
Php :: smarty foreach 
Php :: composer remove phpmailer 
Php :: reply to wp_mail 
Php :: php date diff in days 
Php :: php class extends exception 
Php :: how hide empty category woocommerce wordpress 
Php :: php sort array by value 
Php :: laravel form 
Php :: connect sql server php 
Php :: php timezone change 
Php :: if acf exists 
Php :: what does defined do in php 
Php :: php error check 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =