📜  数组中的 wp 查询元数据 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:52.896000             🧑  作者: Mango

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