如何使此页面显示贴子页面分页?我正在使用带有get\\u template\\u部分的自定义博客模板。
https://www.nowitconnects.com/blog/
<?php
/**
* Template part for displaying blog content in page_blog.php
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package nowitconnects
*/
?>
<!-- blogs ================================================== -->
<section class="">
<div class="">
<div class="row">
<!-- START BLOG LOOP -->
<?php $the_query = new WP_Query( array( \'post_type\' => \'post\' ) );
while( $the_query->have_posts() ) : $the_query->the_post(); ?>
<div class="col-lg-8 col-md-8">
<div class="aside-feature">
<div class="col-md-4">
<div class="">
<?php // check if the post has a Post Thumbnail assigned to it.
if ( has_post_thumbnail() ) {
the_post_thumbnail(\'full\', array(\'class\' => \'img-responsive\'));
} ?><br/>
</div>
</div>
<div class="col-md-7">
<?php the_title( \'<h3><a href="\'.get_permalink( $id ).\'">\', \'</a></h3>\' ); ?>
<?php the_excerpt(); ?><br/><hr/><br/>
</div>
</div>
</div>
<?php endwhile; ?> <!-- END BLOG LOOP -->
<aside id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar( \'sidebar-1\' ); ?>
</aside><!-- #secondary -->
</div>
</div>
</section>