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>';
?>
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.