Removing Pagination From Wordpress Category Pages Only

Discussion in 'WordPress' started by BamaStangGuy, Jun 3, 2007.

  1. #1
    Anyone know how to remove the pagination (not just the Prev/Next links) from the category pages? What I want is for it to list all the articles within that category on one page.
     
    BamaStangGuy, Jun 3, 2007 IP
  2. mopacity

    mopacity Well-Known Member

    Messages:
    541
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Well, that would be one looooong page if you has many articles in that category..haha

    Anywayz, this can be accomplished by editing the category.php template, but it also depends on what theme your are using.

    find this code:

    <div class="post_updates"><?php if(function_exists('wp_pagenavi')): ?> <?php wp_pagenavi(); ?><?php else : ?><?php posts_nav_link(); ?>
    <?php endif; ?></div>
     
    mopacity, Jun 4, 2007 IP
  3. BamaStangGuy

    BamaStangGuy Notable Member

    Messages:
    955
    Likes Received:
    51
    Best Answers:
    1
    Trophy Points:
    245
    #3
    I was planning on stripping down the category pages to only list the titles of the articles so it wouldn't be too terribly long. It would be much easier to navigate than going back through 10-20 pages.

    I don't have a category.php template. The only category.php I have is in wp-includes. I am using 2.1.3 if that matters.
     
    BamaStangGuy, Jun 4, 2007 IP
  4. BamaStangGuy

    BamaStangGuy Notable Member

    Messages:
    955
    Likes Received:
    51
    Best Answers:
    1
    Trophy Points:
    245
    #4
    Anyone else have any idea how to do this?
     
    BamaStangGuy, Jun 8, 2007 IP
  5. vinodis

    vinodis Peon

    Messages:
    304
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The number of posts displayed will be equal to the number of posts you have set for the homepage. So If you've set 10 for Homepage, in the category pages , you get 10.
     
    vinodis, Jun 8, 2007 IP
  6. CypherHackz

    CypherHackz Well-Known Member

    Messages:
    447
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    155
    #6
    what you need is a plugin. this plugin will list all articles in the category id you choose from. but you must have runPHP plugin to make it works.

    create a new page, and put this code in the editor. replace cat-id with the category id number.

    <?php wp_cat_posts(cat-id); ?>
    Code (markup):
    make sure runPHP is check and click Publish.

    -cypher.
     
    CypherHackz, Jun 9, 2007 IP