I have a CPT with about 300 entries. I would like to show on my website something like “Post of the week” which automatically picks one of my CPT (random order) and shows it on my website for 7 days. How would you guys do that? Happy about any help 🙂
You don’t really need ACF for this. Set a transient https://codex.wordpress.org/Transients_API with the post ID that expires after 7 days. If the transient has expired, choose another random post and set it again.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users