You can achieve that by using a plugin like this one – http://wordpress.org/plugins/wp-pagenavi/
You’ll need to follow the instructions here – http://wordpress.org/plugins/wp-pagenavi/installation/
which require you to alter the theme files.
If you do, do make sure to use a child theme. I’ve provided some info in the style.css comments at the top on how to get you started.
Thread Starter
LANSMM
(@lansmm)
Thanks for the quick answer. I already use a child theme (read all support post when installed the theme).
I tried with the pagenavi plugin, but it doesn’t work.
I changed template-tags.php as told by the plugin authors, but it just change nothing. I still have “previous posts” with an arrow.
Any ideas?
My template-tags.php looks this way:
<?php if ( is_single() ) : // navigation links for single posts ?>
<?php previous_post_link( <?php wp_pagenavi(); ?> ); ?>
<?php next_post_link( <?php wp_pagenavi(); ?> ); ?>
<?php elseif ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
<?php if ( get_next_posts_link() ) : ?>
<?php wp_pagenavi(); ?>
<?php endif; ?>
<?php if ( get_previous_posts_link() ) : ?>
<?php wp_pagenavi(); ?>
<?php endif; ?>
<?php endif; ?>
Hi LANSMM
I just tested this plugin myself.
I think that instead of the template-tags, you need to change the code in the index.php.
Copy the index.php to your child theme and then on line #35
delete this line:
<?php mon_cahier_content_nav( 'nav-below' ); ?>
and replace it with:
<?php wp_pagenavi(); ?>
You can then do the same with archive.php and search.php.