How To Add Page Number on Wordpress

7:00 AM

How To Add Page Number on Wordpress - have you ever seen my bahasa blog at panduaji[dot]net ? That blog is older than this english blog. My bahasa blog using wordpress as CMS. Look at this blog, if you want to open older post you must open in sequence. After page one, page two, three, four, etc. Its annoying. On wordpress you can easily open older post. You can jump to pages 4, 10 50, and last page with one click. You don't need to open each page. If you have tutorial how to add page number on blogger, let me know!

On this post, i want share how to add page number on wordpress blog. Case study is my blog on panduaji[dot]net. Before we custom the wordpress file, please install WP Page Navy Plugin. If your page number available after installing this plugin, it's done! If didn't, you need to follow this instruction
  • Open appereance > editor then open function.php.
  • Find this code
    <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'themonic' ) ); ?></div>
    
    <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'themonic' ) ); ?></div> 
  • Replace the code with
    <?php wp_pagenavi(); ?>
Iam using themeonic themes for this case, if you have same problem with another theme, just search class nav-previous, maybe the problem is same with me. If you have do that and the page number didn't appear, i am sorry, i can't help you. Maybe you can ask on the wordpress forum.

I hope How To Add Page Number on Wordpress can help your blog easy to navigate. Share this post if you want to tell to your friend. If you have tutorial how to add page number on blogger, let me know!

You Might Also Like

2 comments

  1. Very interesting tutorial :) Do you have the plugin to share? It seems not to work in the official site :/ Thanks!

    ReplyDelete
  2. You can try this link https://code.google.com/p/gimp-extensions/

    ReplyDelete

Popular Posts

Subscribe