Support

Account

Home Forums ACF PRO Filtering issue

Unread

Filtering issue

  • Hi, I try to apply a filter on a query, the filter is on a custom taxonomy ( thematiques), the post can have multiple values of that taxonomy. But what ever I try the result is not what it should be, wher am i wrong ? thanks. Gilles

    $args = array(
    ‘date_query’ => array(
    array(
    ‘column’ => ‘post_date_gmt’,
    ‘after’ => ‘3 month ago’,
    ),
    ),

    ‘meta_query’ => array(
    ‘relation’ => ‘AND’,
    array(
    ‘key’ => ‘thematiques’,
    ‘value’ => ‘cmi’,
    ‘compare’ => ‘LIKE’,
    )
    ),

    );

Viewing 1 post (of 1 total)

The topic ‘Filtering issue’ is closed to new replies.