Home › Forums › Backend Issues (wp-admin) › Scheduling content updates of "Global Options" › Reply To: Scheduling content updates of "Global Options"
It seems the forum at my post, let’s try it again
To get the same effect with an options page you would probably need to build your own plugin similar to the other one that has another options page to let them update the values.
I would probably do this a simpler way by using a repeater field. I would add a data/time field to the repeater, or maybe 2, to allow the client to set dates what it should be displayed. Then when looping through the repeater I’d check the value of the field against the current date/time to see if it should be displayed.
This has two effects
The main issue with this method is that if you’re not already using a repeater and showing multiple items where this is used then it will need to be rebuild to do so. Or you could limit the display to the first entry that meets the criteria, but this would still mean rebuilding a portion of your code.
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’re hard at work on ACF 6.1, and Beta 1 is now available 🚀— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Let’s take a look 🧵https://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.