Como incluir paginação em uma consulta de tipo de postagem personalizada do Wordpress
Eu tenho o código abaixo:
<?php $the_query = new WP_Query( 'posts_per_page=30&post_type=phcl' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<div class="col-xs-12 file">
<a href="<?php echo $file; ?>" class="file-title" target="_blank">
<i class="fa fa-angle-right" aria-hidden="true"></i>
<?php echo get_the_title(); ?>
</a>
<div class="file-description">
<?php the_content(); ?>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
Estou tentando usarpaginate_links
Função Wordpress, mas não importa onde eu coloquei, eu não posso fazê-lo funcionar. alguém poderia me ajudar com isso?