WP-Pagenavi Plugin To Work in Catagories Too? How?

Discussion in 'WordPress' started by jakeyt, Apr 15, 2010.

  1. #1
    Is it possible to get page navi (1, 2, 3, 4...50, 51, 52...etc) to also work on catagories, if so how?
     
    jakeyt, Apr 15, 2010 IP
  2. googlecrawl

    googlecrawl Banned

    Messages:
    1,739
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is very easy..hope this can help you:
    1 open: archive.php
    2. Find this: <?php posts_nav_link(' &#183; ', '&laquo; Newer Entries', 'Older Entries &raquo;');?> and replace with this:

    <?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?>

    3. save

    Here the sample from my blog: http://thechatter.info/?cat=18
     
    googlecrawl, Apr 16, 2010 IP
  3. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #3
    googlecrawl answer your question. I wud like to add one thing do same thing which u did for index.php or home.php

    You might have categories.php file in ur theme rather than archive.php
     
    Jalpari, Apr 16, 2010 IP
  4. googlecrawl

    googlecrawl Banned

    Messages:
    1,739
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yeah I agree with him. If you wanna show pagenavi in your home page you can do it in index.php as my steps just now. Actually in my theme there is categories.php I just have archive.php
     
    googlecrawl, Apr 16, 2010 IP