Home › Forums › ACF PRO › Group Field contains Group Fields › Reply To: Group Field contains Group Fields
Ok, I´m Sorry that I didn´t post some code examples.
Here is the Code i have which is working fine:
<div class="zeitschrift-box-wrapper">
<?php if( have_rows('zeitschrift_box') ): while( have_rows('zeitschrift_box') ): the_row(); ?>
<img src="<?php echo $upload_dir['baseurl']; ?>/2018/03/second-bg.svg" alt="B2B Publishing">
<?php the_sub_field('text'); ?>
<a href="<?php the_sub_field('link'); ?>"><?php the_sub_field('link_text'); ?></a>
<?php endwhile; ?>
<?php endif; ?>
</div>
What if I have three of these blocks in a “parent” Group?
Do you know what I mean?
Greets
M
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!
Our guide looks into WordPress custom fields and how they stack up against the possibilities of ACF.
— Advanced Custom Fields (@wp_acf) July 18, 2022
https://t.co/hk3yibkHyk
© 2022 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.