Home › Forums › General Issues › Query date repeater field › Reply To: Query date repeater field
i tried like this, to try to display only if one post has the same date than today date but i ‘ve all the post instead of only one.
$today = date(“d/m/Y”);
$args = array (
‘post_type’ => ‘spectacle’,
‘meta_key’ =>’dates_0_date_spectacle’,
‘orderby’ => ‘meta_value_num’,
‘meta_value’ => $today,
‘meta_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.