Support

Account

Home Forums ACF PRO Query relationship field inside WP_Query loop Reply To: Query relationship field inside WP_Query loop

  • I’m assuming you’re talking about this section

    
    $posts = get_field('region');
    if( $posts ): 
      foreach( $posts as $p ): // variable must NOT be called $post (IMPORTANT) ?>
        /<?php echo get_the_title($p->ID); ?>/
        <?php 
      endforeach;
    endif;