Home › Forums › ACF PRO › update_sub_field updates all values in column › Reply To: update_sub_field updates all values in column
I think that is you problem. For example if I use php to do this for today’s date in that format $date = strtotime('21 20 15');
nothing is returned. So $today_time
is always >
Try this $date = strtotime(get_sub_field('date', false, false));
The second false tells ACF not to format the value so it will be returned as ‘YYYYMMDD’ and this is interpreted correctly by strtotime()
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.