0
我在WordPress上使用引导主题。 我最近的帖子只显示标题和一个小文本,但没有原始帖子的缩略图。如何添加缩略图到最近的帖子,WordPress的
我需要的最近的文章中显示一个小缩略图在右侧则标题和SMaL公司的文本
这里是我的代码
<div class = "col-md-10">
<?php while(have_posts()) : the_post(); ?>
<div class="well well-sm">
<h3>
<a href = "<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<p>
<?php the_excerpt(); ?>
</p>
<small class="text-muted"><?php the_time('j F Y'); ?></small>
</div>
<?php endwhile; wp_reset_query(); ?>
</div>