Last active
March 21, 2017 20:03
-
-
Save marcosnakamine/d0f4b3d22460efe7fe0ac35f636fda56 to your computer and use it in GitHub Desktop.
WordPress - Add custom pagination with arrows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wp_query; | |
echo get_previous_posts_link('<span class="ion-chevron-left"></span>'); | |
echo get_query_var('paged') ? get_query_var('paged') : 1 ?> / <?php echo $wp_query->max_num_pages; | |
echo get_next_posts_link('<span class="ion-chevron-right"></span>'); | |
// Use http://ionicons.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment