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
版权声明:本文标题:get_the_excerpt only returns one excerpt 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745458363a2659208.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论