Wordpress:如何使用ACF子字段进行自定义查询

Wordpress:如何使用ACF子字段进行自定义查询,wordpress,advanced-custom-fields,Wordpress,Advanced Custom Fields,我有一个名为“anagrafica”的组字段,里面有一个名为“codiceFiscale”的字段 我没有尝试:这个查询总是给出1 $cf = $_POST['cf']; // args $args = array( 'post_type' => 'post', 'posts_per_page' => -1, 'meta_query' => array(

我有一个名为“anagrafica”的组字段,里面有一个名为“codiceFiscale”的字段

我没有尝试:这个查询总是给出1

$cf = $_POST['cf'];
        // args
        $args = array(
            'post_type' => 'post',
            'posts_per_page' => -1,
            'meta_query' => array(
                array(
                    'key'     => 'anagrafica_codiceFiscale',
                    'value'   => $cf,
                    'compare' => '=',
                ),
            ),
        );

        $the_query = new WP_Query( $args );

        if( $the_query->have_posts() ) {
            while( $the_query->have_posts() ) {
                $the_query->the_post();
                //$nome -> the_title();
            }
            wp_send_json(array('response' => 0));
        }
        else {
            wp_send_json(array('response' => 1, $cf));
        }


有什么提示吗??:(

什么类型的值
anagrafica\u codiceFiscale
包含?它包含文本