Home › Forums › General Issues › Shortcode of datepicker within repeater field › Reply To: Shortcode of datepicker within repeater field
There isn’t a shortcode that is built into ACF that will work with repeater sub fields. The ACF shortcode is only meant for simple field types.
https://www.advancedcustomfields.com/resources/shortcode/
Generally for more complex fields you must built your own shortcode http://codex.wordpress.org/Shortcode_API
There might be a way to use the ACF shortcode, please note that I have never tried this and it may not work and it is a hack. It also requires knowing the index (row) of the field you want to show.
The meta key for a repeater sub field is constructed "{$repeater_name}_{$index}_{$sub_field_name}"
So if you wanted to show the field on the first rows you might be able to use
[acf field="repeater_name_0_sub_field_name"]
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.