Daily Blog Tips

Best Wordpress Plugins: Custom Query String

Wordpress allows the user to set the number of posts that are to be displayed on every page. The problem with that feature on the Control Panel is that it affects all the types of pages around the blog. If you set this number to 5 you will have 5 posts on the Homepage, on the categories, on search results and so on.

As you can notice from my sidebar, the only way for the readers to navigate around the blog is through the categories. Having only 5 posts displayed on each category page (which is the number I use for the Homepage) is not efficient since it would force readers to browse across several pages before being able to see all the posts contained there.

customquerystring1.png

The solution for this problem is the Custom Querry String plugin (download link) . After installing it you will be able to set the number of posts (custom queries) for every single page on your website. Here are some of the pages that you will be able to customize:

author archive category year month day search feed home

You can receive our articles for free on your email inbox, with more web design, SEO, monetization and blog tips. Just enter your email below:

148 Responses to “Best Wordpress Plugins: Custom Query String”

Adrian on March 1st, 2007 4:45 am

Solid! Thanks for the heads up. Great blog, useful.

Anthony Baggett on March 1st, 2007 5:58 am

Great plug-in, and a new one to me. Thanks……..downloading now.

Daniel on March 1st, 2007 6:30 am

Installation was really smooth also, one of the best plugins I have played with.

Rory on March 1st, 2007 9:15 am

Is there a hack which forces partial posts, so that the whole post doesn’t show? That’s a whole lot of scrolling if you set it to 10 or 15.

Great plugin, by the way.

George on March 1st, 2007 10:27 am

Great find Daniel! I will have to check that out. I have been wanting to increase the number of posts in my archives for a long while.

Thanks,

George

Amit Karmakar on March 1st, 2007 2:07 pm

Been using this one for about 2 odd years, and its priceless!!!!!

Everton on March 1st, 2007 6:10 pm

now that is a useful find - thanks. Will implement at the weekend

Daniel on March 2nd, 2007 3:31 am

Rory, I just posted an article with an answer to your question, you can read it here:

http://www.dailyblogtips.com/h.....-excerpts/

inspirationbit on March 3rd, 2007 9:46 am

That’s a useful plugin indeed. Thanks.

Rolando on May 19th, 2007 8:48 pm

Dang, too cool, thank you!

Polliwog on May 30th, 2007 9:21 pm

wow. I’ve been searching for hours for the answer to this problem and I find the solution here, where I should have looked in the very first place! Thanks so much Daniel. Your blog is such a valuable resource.

Daniel on June 10th, 2007 7:45 pm

This may be of topic.

But I am looking for this wp plugins:- Different Sidebar by Categories & Sub-Categories

Is it available? Can’t find anywhere.

Reasons for this feature is that I would like start a generic wordpress blog.

Generic means no restrictions on the topics. It could be politic, sports, marketing, business… anything on earth and beyond.

As such, i would like to have different sidebar by categories and subcategories.

For example, in politic category, I may have different blogroll to the one in sports category.

It should be opened for everything that could be found on sidebar and not resticred to blogroll.

I see this as a very useful feature to maximize a blog relevancies as well as the advertising dollars.

Ducked.nl on July 18th, 2007 10:48 am

Thx a lot for the update! Is it also compatible with WP 2.2.x ?

See it in action here: http://www.ducked.nl

Grtz, Andy

Bertrand on August 1st, 2007 8:45 pm

Excellent plugin Daniel. That was exactly what I needed so thanks a lot ;)

Bertrand (from France)

Bertrand on August 20th, 2007 10:16 am

Hi,

I’ve got a strange trouble.

Everything seems to word perfectly (8 posts on home, 15 on others pages) but in fact, it doesn’t display june posts… So strange, does anyone meet the same trouble or have a solution ?

Thanks !

Europasobreruedas on April 19th, 2008 3:05 pm

Thank you, I have finally found what he was looking for and it works perfectly. Thanks again and a greeting

Ville on June 27th, 2008 5:55 am

I’m having a problem with Custom Query String, WP 2.5.1, and K2 RC6. If I define “is_home 1 posts date DESC” and “is_archive 1 posts date DESC”, the home page shows one post, but clicking on the “Older” link above the article produces and archive page with as many posts as defined at Settings > Reading > Blog pages show at most (which is 10 by default). The link above the article shows the number of pages as if each message would be displayed on its own page (27 in case of the blog I’m working on), but since the archive pages are not affected by the is_archive custom query string, the content runs out after three archive pages, and on the fourth page (4 out of 27) a “Not Found” message is displayed.

Seems something has changed in WP 2.5.1 or perhaps K2 adds something to the mix. It would be great to see the issue fixed as this would be otherwise a perfect plugin!

Ville on June 27th, 2008 11:10 pm

It’s the K2 (currently testing RC6) that causes the trouble. When the default theme is in use, the problem goes away. Unfortunately I really like K2. Any chance the plugin could be made to coexist with the most popular 3rd party WP theme? :)

Joe, Designer on July 24th, 2008 12:23 am

Custom Query String 2.7 doesn’t seem to work with WordPress 2.6

An error is produced at the bottom of the category pages. Deactvate the plugin and the error goes away.

The error is

wp_categories’ doesn’t exist for query SELECT cat_ID FROM wp_categories WHERE category_nicename = blah blah blah

Anyone have a solution?

Daniel Scocco on July 24th, 2008 8:04 am

@Ville and Joe, it is working fine here both on 2.5.1. and 2.6. Make sure it is not just clashing with another plugin you might have installed.

Joe, Web Design on July 24th, 2008 10:26 am

Well, the good and the bad news is….

I deactivated everything except CQS. The error continued to display at the bottom of the page.

I guess that leaves me with my answer. It has to be something to do with the actual database. I must mention that this was a very old WP install (1.5.*) before the upgrade and it did run a hitch concerning the categories.

I guess I will just customize the looop and do it the hard way for now.

Thanks.

Ian on July 24th, 2008 10:29 am

Daniel, why are you so dismissive? You need to check the facts out before giving the sound advice of “well it works for me so…”

The plugin you recommend is broken for wordpress 2.6

If I were you I’d check your error logs just to make sure your site is not affected.

There is an alterantive plugin that does exactly the same thing called “Custom Query String Reloaded” and it works just fine on WP 2.5.1 and Wordpress 2.6.

http://moshublog.com/2007/10/3.....g-support/

Ian on July 24th, 2008 10:39 am

Oh and Joe, I sent you I went to your site and sent you a message.

Ville, you could try the Reloaded plugin also, I don’t know if it’ll work for you though.

Daniel Scocco on July 24th, 2008 1:39 pm

@Ian, I just said the plugin is working for me on 2.5.1 and 2.6, I didn’t say it was 2.6 compatible or anything.

Also not sure if you noticed, but I recommended this plugin on March 2007.

I guess you need to check the facts also.

Joe, Web Design on July 24th, 2008 1:53 pm

Awesome!

Custom Query String Reloaded fixed it.
This according to the version numbers would make it Custom Query String 2.9.

Thanks for all the help.

Ian on July 24th, 2008 2:01 pm

@Daniel - I noticed when you wrote the post. My comments were in response to your advice to Joe and Ville

“Ville and Joe, it is working fine here both on 2.5.1. and 2.6. Make sure it is not just clashing with another plugin you might have installed.”

Maybe you could include include an edit at the bottom of the post recommending the Reloaded Plugin for those who are having problems.

It works in exactly the same way as 2.7 so you instructions are still applicable.

Don’t think I’m trying to pick holes Daniel. I’m just trying to help. I had the same problem with the plugin as Joe so just relaying what works :)

Ian on July 24th, 2008 2:02 pm

No problem Joe :)

Wordpress Blog Setup on July 27th, 2008 4:45 am

Excellent wordpress set up advice cheers

Cirilo Veloso Moraes on August 26th, 2008 2:07 pm

Its a very cool plugin.
Tks, dude.
See ya.

Ville on August 29th, 2008 6:32 pm

I got busy with some server stuff for a while and missed these comments for a while. Anyway, I just upgraded to WP 2.6.1, K2 1.0-RC7, and installed CQS 2.9 (’reloaded’). Now the pagination seems to work on the front page (i.e. only the most recent post on the front page and correct number of “history” pages indicated), but is_archive is not responsive. This may again be because of K2, but the value set by is_archive is not respected and any number of archive items are shown on an archive page.

The front-page pagination was the most important issue for me, so I can live with this now, but just wanted to let you know the is_archive may be something to look into (with K2 installed).

I tried the 2.7 also, and with the above mentioned versions it seems to work the same way — i.e. no difference between 2.7 and 2.9.

Got something to say?






You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser