get_the_excerpt only returns one excerpt

Just starting with WP and my inexperience is completely showing.When I use the function get_the_excerpt(), it only ret

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745458363a4628592.html

相关推荐

  • get_the_excerpt only returns one excerpt

    Just starting with WP and my inexperience is completely showing.When I use the function get_the_excerpt(), it only ret

    7小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信