Support

Account

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