Home › Forums › Front-end Issues › Extracting Relational data from repeater fields › Reply To: Extracting Relational data from repeater fields
I don’t know if this is effecting it, but this line needs to be changed
Looking at the second code example you posted
<!-- WP_Query WordPress loop -->
<?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
to
<!-- WP_Query WordPress loop -->
<?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
Also remove this line, the titles should be output in the loop of $postObjects
<?php echo $postObject->$post_title; ?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.