📜  wordpress 查询以通过帖子元获取帖子 - TypeScript 代码示例

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

代码示例1
$args = array(
        'post_type'     => 'event_user',
        'meta_key'      => 'event_code',
        'meta_value'    => $fields[6]['value'],
        'meta_compare'  => '=='
    );

    $query = new WP_Query( $args );

// Other meta_compares
!=, LIKE, ==