Subscribe to How-To Geek

How to Display all Posts on the Category Page in Wordpress

One of the gripes I’ve always had with the built-in Wordpress functionality is that you can only specify the number of posts per page across the entire application, as opposed to being able to customize it per section or page. Thanks to a wonderful plugin by Matt Read, you can fix this easily.

First, you’ll want to grab the plugin from his website and install it. If you are unaware, that means unzipping and uploading the file into your BLOGROOT/wp-content/plugins/ directory.

Update: Looks like the original page is down, so here’s a mirror copy:

Download mirror copy here

He’s got a donate button. If this article helps you, then donate money to him, not me.

Once the plugin is installed, you will navigate in your control panel to the Plugins page, and Activate the CQS plugin. Head over to Options / CQS and you should be presented with this screen.

I’ve already customized mine… you should change the Query dropdown to “is_category”, set the Show condition to -1 (for all posts), and click the Add button.

I’ve also gone further and added a new condition so the Home page only shows 5 posts per page. I dislike cluttered homepages.

| More
This article was originally written on 09/26/06 Tagged with: Blogging, Wordpress

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:

Comments (2)

  1. Jody

    Good instructions! Unfortunately, that plugin doesn’t work with the latest version of Wordpress (i.e. 2.3+).

    Here’s a fix:

    Replace the
    “SELECT cat_ID FROM $wpdb->categories WHERE category_nicename = ”
    line with
    “SELECT term_id FROM $wpdb->terms WHERE slug = “

  2. Moshu

    There is an updated version of this plugin for quite a while… since 2007:
    http://moshublog.com/2007/10/3.....g-support/


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Our Friends
Getting Started


About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
mDNSResponder.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
conhost.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.