Home › Forums › General Issues › Can not get repeater row/data on search page (search.php) › Reply To: Can not get repeater row/data on search page (search.php)
<?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
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.