Home › Forums › Add-ons › Repeater Field › Default open fields in repeater › Reply To: Default open fields in repeater
You need to change the field key in the hook
.......add_filter('acf/load_value/key=field_5bcf70a95df1c',..............
with the field key of your repeater. Then you need to change the field key where we see if there is any value with the field key of your sub field if you’re doing anything with.
.............if ($value[count($value)-1]['field_5bcf70b75df1d']) {........
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.