Home Forums General Issues Relationship Code Problem Reply To: Relationship Code Problem

  • Hi,

    yes I have implementet this code

    <?php $posts = get_field('myfieldname');
    if( $posts ): ?>
    <?php foreach( $posts as $p): ?>
    <?php echo get_the_title( $p->ID ); ?>
    <?php endforeach; ?>
    <?php endif; ?>

    But I get the following Problem:

    The title would be displayed perfect.

    But the other 3 Postings in this category won’t be published. Only the first article will be showen in the category. All articles which will be listed after the relationship snipped won’t be showen.