I can’t tell you how many times I bang my head against my computer trying to make WordPress do something or display content in a way that it just doesn’t do straight out of the box. For example, displaying the number of posts on a page. This is an all or nothing situation. Sure I can set this globally (meaning I can set WordPress to display 1 post per page or 5 posts per page – but this is for every page on my web site)
What if I wanted to display the top 3 news posts, or wanted to display one post on my home page and then display 10 post excerpts on the category pages? I think you can see my point.
Well today I ran across a handy little plugin from Matt Read called Custom Query String. This cool little plugin for WordPress now gives me the freedom I’ve been needing and allows me to better customize my web site pages for a better user experience.

With Custom Query String I can easily change just about any way a post is displayed. I can change the number of posts that are displayed on my my home page, or change my category pages, or change how the order of posts are displayed.
Installing the plugin is super easy. It is installed like any other plugin, simply drop the custom-query-string.php file in your plugins directory and activate.
Once it is activated you will still need to create a “Condition” and an associated “Result” . This may look a little strange and seem a bit intimidating to beginners, but once you create your first condition it will be clear.
The easiest way I found to test this plugin is to create a condition for your home page. First this you need to add a new condition. In the Add New Condition section, click the drop down box under Condition and select “is_home”. Then in the same row add the number of post you want to show on your home page. I left everything else default and clicked “Add”. This allowed me to show two posts on my home page.
One thing I would love to see is the ability to edit Current Conditions. Right now, if you want to change a Current Condition you have to delete it and re-create. Not a big deal really because creating the conditions is quick and easy,.
This is an awesome little plug-in. Custom Query String unlocked some needed functionality I’ve been needing in WordPress and I hope it helps you too!