Support

Account

Home Forums General Issues Custom Post Type Relationship Archive Page Reply To: Custom Post Type Relationship Archive Page

  • You can access your content within the loop via get_field ('field_slug');. So when you get your “relationship” via get_field (), you have access to the content.

    The loop should look like this:

    // check if entries exists
    if( have_posts() ):
    
    // loop start
    while( have_posts() ): the_post();
    
    // YOUR FIELD
    
     // loop end
    endwhile;
    
    // reset query
    wp_reset_postdata();
    
    // end
    endif;

    You can check the contents of the field with print_r( get_field('field_slug') );.

    Some Links:
    get_field
    wp_query