Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress页面缩略图未显示_Wordpress_Thumbnails - Fatal编程技术网

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之后,一切都很完美。