Display ACF group field

323

Last updated

Added

Informations

This code display sub fields of a group field.

Code

<?php if(have_rows(‘group_field_name’)) : ?>
  <?php while(have_rows(‘group_field_name’)) : the_row(); ?>

 

    <?php the_sub_field(‘sub_field_name’); ?>

 

  <?php endwhile; ?>
<?php endif; ?>

Contribute to this page

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *