我使用downmloaded wordpress代码,主页显示两个横幅图像banner.jpg和banner2.jpg(它似乎使用了bxslider)。但我可以选择嵌入滑块图像的代码。它在header.php中。代码如下。在管理面板中缺少WordPress的帖子,但在数据库中可见
我只能在管理面板中看到12个帖子,但是如果我在数据库中搜索横幅图像名称(banner.jpg和banner2.jpg。),我可以在两个不可用的单独帖子中看到它们或从管理面板访问。 数据库示出了超过200个信息,但管理面板仅示出了12
<!--banner starts-->
<?php if (is_front_page())
{
?>
<section class="banner">
<ul class="bxslider">
<?php
$type = 'slider';
$args=array(
'post_type' => $type,
'post_status' => 'publish',
'posts_per_page' => -1,
'caller_get_posts'=> 1);
$my_query = null;
$my_query = new WP_Query($args);
if($my_query->have_posts()) {
while ($my_query->have_posts()) : $my_query->the_post();
$feat_image = wp_get_attachment_url(get_post_thumbnail_id());
?>
<li><img src="<?php echo $feat_image; ?>" alt=""/>
<div class="banner-pattern"></div>
</li>
<?php endwhile; } ?>
</ul>
<div class="banner-content-top">
<div class="container">
<div class="row">
<div class="col-lg-5 col-md-6 col-sm-12">
<div class="banner-content">
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php } else
{
}
?>
<!--banner ends-->
我的问题是: 1),其图像由代码线被拉 (wp_get_attachment_url(get_post_thumbnail_id())) 显示器。这是我们在帖子中设置为特色的图片吗?
2)为什么管理面板只显示12个帖子,即使数据库中有超过200个帖子?
3)为什么在管理面板中标题图片的帖子不可见。