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
评论列表(0条)