Home › Forums › Add-ons › Flexible Content Field › ACF Pro Flexible Content Sub-Fields are Null for new Field Groups › Reply To: ACF Pro Flexible Content Sub-Fields are Null for new Field Groups
When using a flex field you need to have a loop https://www.advancedcustomfields.com/resources/flexible-content/
if (have_rows('flex_field_name')) {
while (have_rows('flex_field_name')) {
the_row();
echo get_sub_field('fix_text_field_2');
}
}
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.