在wordpress后的显示中添加分页

在wordpress后的显示中添加分页,wordpress,Wordpress,我正在使用下面的代码列出帖子,但是有200多篇帖子,所以我想在末尾添加分页 <?php // the query $the_query = new WP_Query(array( 'category_name' => 'Reports', 'post_status' => 'publish', )); ?> <?php if ($the

我正在使用下面的代码列出帖子,但是有200多篇帖子,所以我想在末尾添加分页

<?php
        // the query
        $the_query = new WP_Query(array(
            'category_name' => 'Reports',
             'post_status' => 'publish',
        ));
        ?>

        <?php if ($the_query->have_posts()) : ?>
            <?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
                <div class="col-md-12 event_col">
                            <div class="col-md-2 event_date">
                                <a href="<?php the_permalink(); ?>"><span><?php echo the_post_thumbnail(null, 'medium');?></span></a>
                            </div>
                            <div class="col-md-7 event_venue">
                                <div class="titl">
                                    <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>                                   
                                </div>
                            </div>
                        </div>

            <?php endwhile; ?>
            <?php wp_reset_postdata(); ?>

        <?php else : ?>
            <p><?php __('No News'); ?></p>
        <?php endif; ?>


WP有多种分页功能:好的,那么在上面的代码中添加到哪里呢?你能把有页码的代码寄给我吗。任何分页都可以。谢谢。我鼓励你自己试试。我之前评论中的文档链接有完整的工作示例,您可以复制并尝试。嗨,这不起作用。你能告诉我如何添加“加载更多”功能吗。