Wordpress页面缩略图未显示
当我查看整个页面Wordpress页面缩略图未显示,wordpress,thumbnails,Wordpress,Thumbnails,当我查看整个页面single.php <div class="entry"> <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } the_content(); ?> </div> 我的代码是否有问题,因为缩略图没有显示,并且所讨论的页面有一个特色图像集? 任何想法都将不胜感激 问题是我在single.php中编写了代码,但是还有一个page.p
single.php
<div class="entry">
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(); }
the_content(); ?>
</div>
我的代码是否有问题,因为缩略图没有显示,并且所讨论的页面有一个特色图像集?
任何想法都将不胜感激 问题是我在single.php中编写了代码,但是还有一个page.php。在将代码添加到page.php之后,一切都很完美。是否在中?是的。在while循环中,问题是我在single.php中编写代码,但是还有一个page.php。在将代码添加到page.php之后,一切都很完美。