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
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
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.