Home › Forums › Add-ons › Repeater Field › shortcode with parameters for repeater field › Reply To: shortcode with parameters for repeater field
The repeater field name is constructed by combining the parent field name (the repeater) the row index (yes it starts at 0) and the sub field name.
"{$repeater_name}_{$index}_{$sub_field_name}"
But even with this you can’t use the built in ACF shortcode. The reason is that the ACF shortcode will only work with basic fields that store simple text values and will not work for fields like image, nav menu, and many other fields that store values that need to be interpreted by ACF. For this type of thing you’re going to have to create your own shortcodes https://codex.wordpress.org/Shortcode_API
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.