Home › Forums › Add-ons › Flexible Content Field › How to use flexible content field inside repeater use › Reply To: How to use flexible content field inside repeater use
the_flexible_field()
and has_sub_field()
are deprecated. You should be using have_rows()
https://www.advancedcustomfields.com/resources/have_rows/ for all repeater type fields, including flex fields.
For all sub fields of repeaters you should be using get_sub_field()
https://www.advancedcustomfields.com/resources/get_sub_field/ or the_sub_field()
https://www.advancedcustomfields.com/resources/the_sub_field/ and not get_field()
or the_field()
have_rows()
works on both top level fields and sub fields
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.