Reference: WordPress paging plug-in: WP-PageNavi_51CTO blog_wordpress static plug-in
Note: The effect cannot be seen after this plug-in is enabled. The following code must be placed on the template;
For example: Category directory template [If placed at the bottom, please add it to the bottom of footer.php]
<!--配置WP-PageNavi 分页导航代码-->
<div style="text-align:center;padding:20px"><?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
Remember: don’t put code inside a loop!