Home › Forums › Backend Issues (wp-admin) › Update ACF Field on daily basis › Reply To: Update ACF Field on daily basis
I suspect you would need to run a CRON daily which would trigger a script/function.
That script/function can then run the code to update your date.
Where does $post_id come from? Is it a custom post or a WooCommerce order?
Is it a published post or in a set status?
Basically, your script could simply be a WP Query that loops whatever the post type is, it should then update the post meta as you add your code above in the loop
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.