Support

Account

Home Forums Add-ons Repeater Field Repeater field returns nothing from a Template Reply To: Repeater field returns nothing from a Template

  • I hope you know I’m not trying to be difficult I just didn’t understand what you were saying. To me it appears that the ACF functions are inside the loop and the problem is that they are calling using the ID of the current post page when I want them to use the ID of the get_template_part post.

    Are you saying that the ACF functions are outside of the loop because they have php tags around them??

    I did based my code off of this page which didn’t query any specific post
    http://www.advancedcustomfields.com/resources/working-with-nested-repeaters/

    Anyways, I figured it out based on the comments that you made. I was calling using the ID of the wrong current post vs the ID of the post template which I was loading.

    I added this at the beginning of that loop

    <?php 
    		query_posts('post_id=65');
    							
    while ( have_posts() ) : the_post(); 
    ?>

    Then I reset the loop <?php wp_reset_query(); ?> and it’s working great.

    thanks!