Support

Account

Home Forums Front-end Issues Displaying a relationship field on a custom post type taxonomy page Reply To: Displaying a relationship field on a custom post type taxonomy page

  • Hmm, I don’t know (I’m not a super advanced WP programmer). But I did a search in the code for “setup_postdata” on the template and in my functions file and didn’t come up with anything. I also tried removing any custom code I’ve added and the same thing happens when I add the following to my template. It’s like it’s looping through, but not showing any data other than the first item. But if I remove the code below, it works fine.

    
    <?php 		 
    $posts = get_field('store-type');		 
    echo '<pre>';
    print_r( $posts );
    echo '</pre>';
    ?>