我正在使用WordPress“wp\\u page\\u numbers”插件,接下来的页面是空的。我不确定我的代码是怎么回事,但应该在下一页重新开始。这是我的。。。。。。。。。。。。。。。。。。。。。。。。。。。。
<div class="container post_container" id="blog_post_container">
<div class="row">
<div class="col-xs-12">
<div class="running_head_pink" id="recent_posts">
<h1>Recent Posts</h1>
</div>
<?php
$paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;
$recentPost = new WP_Query(
array(
\'type\' => \'post\',
\'posts_per_page\' => 6,
\'order\' => \'ASC\',
\'orderby\' => \'date\',
\'cat\' => \'39\',
\'paged\' => $paged
)
);
if(have_posts()) { ?>
<br>
<br>
<div class=" row posts_table">
<?php
$counter = 0;
while($recentPost->have_posts()) {
$recentPost->the_post();
?>
<div class="col-xs-4 recent-blog-posts" id=\'border-right\'>
<div class="recent-thumbnail"><?php echo the_post_thumbnail(\'medium\') ?><h3 style="color:pink; font-family:Anton, sans-serif;"><?php echo get_the_date(\'n.d.y\'); ?></h3></div>
<h2 class="blog-title" id="container_titles"><?php the_title(); ?></h2>
<br>
<p>
<!-- <?php echo get_the_excerpt() ?> -->
<a class="ghost-button" href="<?php the_permalink(); ?>">Read</a>
</p>
<hr style=\'border-color:pink\'>
</div>
<?php
$counter++;
if($counter %3 == 0) {
?>
</div>
<div class="row posts_table">
<?php
}
}
wp_reset_postdata();
?>
</div>
<?php
if(function_exists(\'wp_page_numbers\')) { wp_page_numbers();
}
}
?>
</div>
</div>
</div>
<?php get_footer(); ?>