Home › Forums › General Issues › wp_query and meta_query for repeater field values › Reply To: wp_query and meta_query for repeater field values
Hi,
I know this is a old post but, did you find a solution ?
I have exactly the same problem and I don’t know how to fix it.
I know that we can’t do an order by on a repeater field, but . Im looking for how to do a meta query on a repeater field.
There is my code :
$args = array(
'post_type' => 'product',
'post_status' => 'publish',
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'date_formation_$_date_session',
'value' => '20191108',
'type' => 'DATE',
'compare' => '='
),
array(
'key' => 'date_formation_$_date_session',
'value' => '20191208',
'type' => 'DATE',
'compare' => '='
),
)
);
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.