Home › Forums › General Issues › Date Picker (and if date specified has passed) › Reply To: Date Picker (and if date specified has passed)
Hi @elliot,
Many thanks for your reply.
I am testing this by echoing out both the current date and get_field('event_date_date')
with the format Ymd
with each event to compare using:
echo $end_date_passed_check->format('Ymd');
echo '<br/>';
echo date('Ymd');
These all seems to be correct, but what it seems to be doing is when the first if statement is true, then it applies it to the rest of the elements. I think this might be a while loop error, but maybe you can help?
Here is what my output looks like http://goo.gl/xW3pwT
Many thanks,
R
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp
— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.