我没有收到任何错误,但帖子图像没有显示在首页,所有其他页面都正确显示了图像。我怎样才能解决这个问题?这里是网站
首页设置为显示最近的帖子。
这是索引。php文件
<?php get_header(); ?>
<?php
// get options
$pinthis_infinite_scroll = get_option(\'pbpanel_infinite_scroll\');
?>
<section id="content">
<div class="container fluid">
<?php if (is_category()) { ?>
<div class="category-title">
<div class="container">
<h3 class="title-3"><?php single_cat_title(); ?></h3>
<?php if (category_description()) { ?><div class="description"><?php echo category_description(); ?></div><?php } ?>
</div>
</div>
<?php } ?>
<?php if ( have_posts() ) { ?>
<div class="boxcontainer">
<?php while ( have_posts() ) { the_post(); ?>
<?php get_template_part(\'pinbox\', get_post_format()); ?>
<?php } ?>
</div>
<?php
ob_start();
posts_nav_link(\' \', __(\'Previous Page\', \'pinthis\'), __(\'Next Page\', \'pinthis\'));
$pinthis_posts_nav_link = ob_get_clean();
?>
<?php if(strlen($pinthis_posts_nav_link) > 0) { ?>
<div class="container">
<div class="posts-navigation clearfix <?php if ($pinthis_infinite_scroll == 1) { ?>hide<?php } ?>"><?php echo $pinthis_posts_nav_link; ?></div>
</div>
<?php } ?>
<?php } else { ?>
<div class="notification-body">
<p class="notification tcenter"><?php echo __(\'No posts found.\', \'pinthis\'); ?></p>
</div>
<?php } ?>
</div>
</section>
<?php get_footer(); ?>