<?php if( have_rows('your_repeater_field', 'option') ): ?> <?php while ( have_rows('your_repeater_field', 'option') ) : the_row(); ?> <?php $post_object = get_sub_field('your_post_object', 'option'); ?> <?php if( $post_object ): ?> <?php $post = $post_object; setup_postdata( $post ); $title = get_the_title( $post_object->ID); ?> <h4><?= $title ?></h4> <?php wp_reset_postdata(); ?> <?php endif; ?> <?php endwhile; ?> <?php endif; ?>
Leave a Reply