Home › Forums › ACF PRO › Displaying ACF fields with Post Connector plugin › Reply To: Displaying ACF fields with Post Connector plugin
Hi @steven
I believe you can fix it by providing the ID of the child post as the second parameter of the have_rows() function. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/have_rows/. Also, I don’t think you need to use the $connected
variable for the_row() function. Maybe something like this:
if( have_rows( 'sa_town_list', $connected->ID ) ) {
echo '<ul>';
// Loop through deez rowz (somethin came in da mail)
while( have_rows( 'sa_town_list', $connected->ID ) ) : the_row();
I’m not sure how do you suppose to get the child post ID, so please change this code: $connected->ID
with the right one.
I hope this helps. Thanks!
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.