admin管理员组

文章数量:1425895

Just starting with WP and my inexperience is completely showing. When I use the function get_the_excerpt(), it only returns one excerpt for the most recent blog post, and not the other ones.

I am using a theme, so trying to work with what is already here. Here is the code in the theme-shortcodes:

if ($excerpt == '1' || ($first && $excerpt == 'featured')) {
    $output .= '<div class="post-excerpt">'. get_the_excerpt() .'</div>';
}

And my output code:

$output .= '<div class="post-excerpt">'. get_the_excerpt() .'</div>';

How can I make the excerpts show for all my blog posts?

I would be grateful for any help or any point in the right direction - thanks!

本文标签: gettheexcerpt only returns one excerpt