Page Numbers

Hi,

I just wondered how I can add Page numbers at the buttom of my website www.ma-san.de instead of “older posts”. Any halp would be great.

Regards
Martin

Hi Martin,

Default navigation is loaded from template-tags.php file, but maybe it is best to leave it unchanged because it is easier to override default WordPress templates from child theme. So copy them to child theme and replace default function call. If you don’t want to do this from child theme then change this to parent theme directly but note that changes will be lost after theme update.

  1. You will need this plugin https://wordpress.org/plugins/wp-pagenavi/ - install and activate it

  2. Then change default navigation function call in all templates where it is present, like for example in home.php file find:

the_posts_navigation();

and replace it with plugins function:

wp_pagenavi();

  1. Finally pagination should be displayed instead - see my example https://www.screencast.com/t/adV8NQtjrU

Best Regards!