Home › Forums › Add-ons › Repeater Field › Display Values from Options Page Repeater Field in CPT Editor? › Reply To: Display Values from Options Page Repeater Field in CPT Editor?
You need to give each row of the repeater some unique identifier. Rows can be reordered in the repeater, when this happens there isn’t any way to match them up. Also, things can be removed, added, etc. This needs to be dynamically generated in some way. Here is one example: https://second-cup-of-coffee.com/creating-unique-ids-for-acf-repeaters/, if you search you will find others.
You use a select field and dynamical populate the values of that field using the unique value from the repeater as your select value and the feature name as the label.
On the front end you get this field then loop over the repeater showing the rows that match the selected unique values.
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!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.