Wordpress显示缩略图不起作用
我正在制作一个wordpress网站,在那里我将上传一些图片和视频。只是为了测试,我写了一些帖子并上传了一张照片 我正在使用主题 在头版,应该有一些带有缩略图的最新帖子 但是,在我的wordpress中,当最近的帖子起作用时,缩略图不起作用 我检查了一些php文件,比如functions.php或content.php,看看它们是否有一些缩略图函数 在content.php中,我发现了一些缩略图代码Wordpress显示缩略图不起作用,wordpress,themes,thumbnails,Wordpress,Themes,Thumbnails,我正在制作一个wordpress网站,在那里我将上传一些图片和视频。只是为了测试,我写了一些帖子并上传了一张照片 我正在使用主题 在头版,应该有一些带有缩略图的最新帖子 但是,在我的wordpress中,当最近的帖子起作用时,缩略图不起作用 我检查了一些php文件,比如functions.php或content.php,看看它们是否有一些缩略图函数 在content.php中,我发现了一些缩略图代码 <div id="post-<?php the_ID(); ?>" <?
<div id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
<?php if ( has_post_thumbnail() ) : ?>
<div class="post-image">
<?php if ( is_sticky() ) : ?>
<a class="sticky-tag" title="<?php _e('Sticky post:','rowling'); echo ' '; the_title_attribute(); ?>" href="<?php the_permalink(); ?>">
<span class="fa fw fa-star"></span>
</a>
<?php endif; ?>
<a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('post-image-thumb'); ?>
</a>
</div> <!-- /post-image -->
您可能正在文章的内容区域中放置图像
如果主题支持特色图片,那么在帖子面板的右下方应该有一个名为“特色图片”的部分。从那里选择一些图片并更新你的帖子