这个项目我就是赢不了!突然,每篇文章的图库照片都出现在文章的摘录/预览中。每个帖子都有一个图片库,只能在实际帖子的页面上看到。有人能看到这可能是什么原因吗?
这是我的代码:
if ( has_post_thumbnail() ) {
the_post_thumbnail();
}
else {
get_the_image( array(\'size\' => \'thumbnail\',
\'image_class\' => \'wp-post-image\'));
}
然后在我的函数文件中:// This theme displays custom size (page-single) featured image on the Post\'s page
function InsertFeaturedImage($content) {
global $post;
$original_content = $content;
if ( current_theme_supports( \'post-thumbnails\' ) ) {
if ((is_page()) || (is_single())) {
$content = get_the_image( array( \'size\' => \'full\' ) );
$content .= $original_content;
}
}
return $content;
}
add_filter( \'the_content\', \'InsertFeaturedImage\' );
您可以在此处查看相关网站:http://dependablecarcompany.com你会看到这个被严重破坏的网站。那里应该只有一个摘录的代表性缩略图,而不是图库中的所有拇指。
非常感谢。