Home Forums Add-ons Repeater Field using the_excerpt() or similar in while ( have_rows(


using the_excerpt() or similar in while ( have_rows(

  • So we have a template file per post type that is used everywhere on the site.

    But when trying to use them with a repeater row they don’t work.

    while ( have_rows('row','acf_options_home') ) : the_row();

    in content.php we have

    <div class="entry-summary">
    <?php the_excerpt(); ?>

    but the excerpt is empty because the post data hasn’t been set. How can we use our templates that work everywhere else with repeater rows?

    any help appreciated!

  • Does one of the sub fields of the repeater contain information on what post the excerpt should come from?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.