I’m looking to create a Repeater-field in my Options-page. The repeater shall then populate into a Drop-down visible on the “Edit”-Page of a post. I’d like to use it to be able to create items of contact information for the management team on the options page, and have them selectable on posts/pages.
Is this possible?
This sounds like a good fit for a tutorial I wrote here:
This covers how to dynamically populate a select field based on an options page repeater!
Hope that helps.
This seems to do exactly what I need!
However I’ve done what the tutorial says (Example 2,) but it’s not working.
Is the tutorial meant for populating a drop-down on an “Edit post page”, or made for use on the front-end?
Does the tutorial require that I include ACF in my theme, or can it remain a as a plugin?
Ok so, this is what I want to do:
I want to have a drop-down (
<select>) on the Posts > Add Post / Edit Post page. I want this drop-down to be populated by a <i>Repeater</i> on the Options page.
Essentially, I can then go to the Options page only visible to me, and using the repeater I can add Contact Persons for example.
Then, as a regular user adds a post (a press release for instance,) he/she can choose which of the Contact Persons I’ve added, to be visible on the press release itself.
The topic ‘Repeater populating dropdown on post edit page’ is closed to new replies.
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!