Support

Account

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!