나는 wordpress로 사용자 정의 테마를 만들고 내 뉴스 항목에 대한 사용자 정의 게시물 유형 아카이브를 만들었습니다. paginate()를 사용하고 싶습니다. 기능을 사용하여 내 항목을 탐색합니다. 이 기능은 아직 작동하지 않습니다. 무엇을 잘못하고 있습니까?wordpress, paginate function does not work (사용자 정의 테마)
<div class="col-md-12">
<?php
$args = array('post_type' => 'nieuws-item');
$the_query = new wp_query($args);
while($the_query -> have_posts()) : $the_query -> the_post();?>
<div class="col-md-6 left">
<div class="content-holder-nieuws fc3 left">
<h6><?php the_title(); ?></h6>
<h6 class="month fc2 left"><?php echo (types_render_field("nieuws-maand", array("output"=>"normal"))); ?></h6>
<div class="news-discription left">
<p class="fc5 left">
<?php the_excerpt(); ?>
</p>
<a href="<?php the_permalink(); ?>" class="left read-more">
<img src="<?php bloginfo('template_url'); ?>/img/readmore-border.png" class="readmore-border">
lees meer
</a>
</div>
</div>
</div>
<?php endwhile; ?></div>
<div class="col-md-12 overview-navigation left">
<?php paginate_links(); ?>
</div>