Home › Forums › ACF PRO › Is it possible to have 2 flexible field groups, but they work like one › Reply To: Is it possible to have 2 flexible field groups, but they work like one
@floflo91 hm.. couldn’t make it to work.
I also started from scratch and made a field group with just 2 text fields.
Made a second field group with the reusable group and called the first one.
Made 2 tests in the template:
Test A
<?php the_field('reusable_field_group_for_text'); ?>
Test B
<?php
if( have_rows('reusable_field_group_for_text') ):
while ( have_rows('reusable_field_group_for_text') ) : the_row();
echo "TEST";
endwhile; endif;
?>
TEST A output was and array of both text fields, although i would want to call them separately.
TEST B code didn’t work so maybe i just don’t know how to call the Reusable field type and it’s contents correctly :/ Even without any repeater/flexible.
Too bad the plugin docs don’t have any usage code for it.
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.