Got an interesting change now,
Print_r is now returning number of acf rows in each post.
btw print_r returns nothing.
<?php if( have_rows('activities', $post->ID) ): ?> <?php echo $count = 0; ?> <?php while( have_rows('activities', $post->ID) ): the_row(); // vars $title = get_sub_field('title'); $primary_content_standards = get_sub_field('primary_content_standards'); $primary_math_practices = get_sub_field('primary_math_practices'); $description = get_sub_field('description'); ?> <div class="search-result-wrap"> <h2><?php echo $title; ?></h2> <?php echo $description; ?> <h3>Primary Content Standards Addressed by Resource: <small><?php echo $primary_content_standards; ?></small></h3> <h3>Primary Math Practices Addressed by Resource: <small><?php echo $primary_math_practices; ?></small></h3> </div> <?php endwhile; ?> <?php endif; ?>
That the code that is suppose to show me my data from acf repeater on this post. And yes my repeater is first level of its group on the posts
@hube2 Sir thats understood, but i am trying everything, right next to that code you can see i am providing a hardcode id, I am also doing the same thing in wp loop in the middle of the code, nothing seems to work.
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!
© 2022 Advanced Custom Fields.