Home › Forums › ACF PRO › Update Repeater SELECT field › Reply To: Update Repeater SELECT field
If it’s all part of the same repeater, maybe.
you can create an acf/load_value filter on the repeater field http://www.advancedcustomfields.com/resources/acfload_value/
In this filter you it would be possible to remove duplicate values. The value for the repeater will be a multidimensional array that looks something like this:
$value = array(
// there will be a nested array for each row
array(
// each field in the row will have a value
'type' => 'website',
'value' => 'http://www.website.com/'
)
)
You could loop through the array, record what’s in each row and delete the duplicates, you could also get the value of another field to check to see it that is duplicated as well. At least in theory this might do what you need.
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.