Subscribe!
RSS
  • Moshu
  • Prairie
  • WordPress
  • The combined blog: about WordPress, the Canadian Prairies and myself
    The Journey to full time blogging


Custom Query String Reloaded for Wordpress 2.3 with tag support

Thanks for visiting! If you're new here, you may want to subscribe to my RSS feed. My blog posts useful tips, ideas, tutorials and guides for WordPress bloggers - and articles about the life on the Canadian Prairies. If you are familiar with RSS readers, just add my feeds to your reader! You can also receive updates by email if you submit your email address in the box on the right.

Since I was anyway working with the Custom Query String (CQS) plugin earlier, I decided to take a look at the so-called UTW version of it made by Andy Beard. The addition he made introduced a new option: to define how many posts are displayed on a tag archive page - if the Ultimate Tag Warrior plugin was installed and the posts were tagged.

That CQS plugin stopped working with WordPress 2.3 where the the whole category system has been reworked. The UTW plugin also became obsolete since in this version the developers introduced WP’s own tagging system.

I messed around a bit with the code and finally came up with a version that is using the new tagging system of WordPress to define how many posts to be displayed on a ‘tag archive page’.

You can set the number of posts for a lot of different “views” (archives, month, categories, categories by name, home, search etc.). For the options that you will not set your custom number of posts - the number set in the Options > Reading will be inherited.

The plugin has been tested with the Default and the Classic theme on WP 2.3 and 2.3.1 installations.

Download Download and enjoy!



P.S. Please, report back, comment below if you notice any bug or experience difficulties with the plugin. Although I am not a pro coder I will try to offer limited support.


69 Responses

  • jon ·

    excellent post thanks i needed something like that

  • Andre ·

    I have a problem,

    When you select is_home, 1 days, DATE Desc - It is not showing all the posts from the most recent day like it did before. I would appreciate some help on this if you can.

  • Markus ·

    Hei!
    Great jobb, but i think with a bug. In my blog, i like to order on category asc. but i doesn´t work with a selected category. Is it a local problem or not?

    Thanks! Markus

  • Moshu ·

    Hi Markus,

    I just tried on a test install (again) and both setting ALL the categories (is_category) or just on one selected category to have ASC - it worked.

  • Seo Blog ·

    This is really a useful plug-in. I’ve been browsing wordpress support forum for more than a week now trying to find solution for my problem (categories and archive do not appear)..

    Thanks, I found this..

  • dalton ·

    Thanks for this - this is an excellent plugin and I’m glad somebody picked it up.

  • manele ·

    i was looking for this solution for a long time! the plugin is pretty cool! thx

  • MarkWiseman ·

    Hi just downloaded this to my practice site and all is going well. Thanks for the plug-in I had being trying to resolve this problem all day. This plug-in is the answer
    Mark

  • Moshu ·

    Hi Mark,
    I am glad you found it useful. Actually, all the credits should go to the original author - I just updated it to work with the newer WP versions.

  • Nicki ·

    Fabulous job, Moshu. Works like a charm! :)

  • Moshu ·

    Thanks, Nicki, glad you like it!

  • sdk ·

    awesome work. is this compatible with wordpress 2.5.1?

    gracias!

  • Moshu ·

    Just updated the Download page with a note that it works up till WP 2.5.1.

  • Dennis ·

    It doesn’t seem to work for me in Subcategories. It works in the Parentcategory though.

    There is one Category “Events” (parent) and two subcategories “shows” and “parties”.

    In the “Events” Category it works, but not in the “Shows” and “Parties”

    Any Ideas how i can fix that?

    Thanks in Advance :)

  • Dreama ·

    It appears that transycan.net has disappeared. Is there an alternate way to get this plugin?

  • Moshu ·

    Dreama, yes.
    Here. On the Download page.

  • Lisa ·

    I’m also having no luck with subcategories on WP 2.5.1. The plugin seems not to work on any of them—it’s as if it’s not installed when I view my subcategories.

  • Cathy | healing designs ·

    I love this plugin - thank you so much!

  • Dale ·

    Thank you! I just installed this plugin on two sites and tested it with category archives, month archives, day archives, and specific categories. It works great… was exactly the kind of thing I was looking for to control how many posts appeared under certain conditions.

    Both sites are at WP 2.6, so at least those functions I’ve tried work fine at that version.

  • Joe, Web Design ·

    This just ended a couple of frustrating hours with CQS 2.7 and a WordPress 2.6 installation and errors I was getting on category pages.

    Custom Query String Reloaded fixed it!

    Also thanks to http://www.dailyblogtips.com/ who shared this plugin location.

    Thanks for the hard work and plugin.

  • fattik ·

    hi — how do i show all posts in a category archive page?

    query: is_category
    show: ___ posts ??

  • fattik ·

    “-1″ seems to have done the trick… thank you!

  • dee ·

    I love the CQS plugin! Recently I’ve noticed that the paged setting loses several pages of posts. For example home page is posts Aug 10 - July 21, the paged posts (page 2 as set through CQS) displays May 1 - April 1 instead of the chronologically ordered page containing what ought to be page 2 .. if that makes sense.

    I’ve heard that other people have had this issue, but can’t find a fix.

    Is there something I can do?

    Thx!

  • Moshu ·

    What is the setting for the “home” page? FYI the day/date based settings doesn’t work in WP for ages!

  • stan ·

    Thanks for this efficient&helpful plugin !

  • Alison ·

    Thanks sooooo much, spent a lot of time trying how to code this in - all i needed was this! Great work.

  • dee ·

    @ Moshu:

    My WP front page is set to 5, the CQS is set to display -1 categories, -1 monthly archives both work perfectly. However when I set paged to display 15 I lose a page of posts, skipping from the current month to about May. I don’t use date settings at all.

  • kReEsTaL ·

    Excellent plugin! So far I’ve been using the query_posts() function, but unfortunately it breaks my page/2/, page/3/ and such.

    Your plugin is perfect and working! Thank you for sharing :)

  • Hedon ·

    Hi,

    I love your plugin. It is exactly what I was looking for. But I have what I think is a bizarre problem.

    It is working great on all the Categories I have it set on. But on the archives it works great on July and September but is not working at all on August. I can’t figure out why it would work fine on two months and not on the third.

    Hope you can help me. Thanks, Hedon

  • Hedon ·

    Hi,

    Just wanted to say that I tried it again today and it worked for all three months. This is really a great plug-in. Thanks again.

  • Moshu ·

    I am glad it worked for you as you expected.

  • Keffer ·

    Exellent, big thanks.

  • Garcya ·

    Thank you, works like a charm.

  • Veresh ·

    Thanks this is exactly what I was looking for

  • harro ·

    I have tried the plugin but with no luck maybe its my layout?

    Does WP-Page Navi adjust the navigation buttons according to the amount of posts from custom query string plug-in. As i have different amounts of posts for some categories.

    Thanks

  • Moshu ·

    Harro,

    Try it without the other plugin. Does it work? If yes, there might be some incompatibility between the 2 plugins…

  • Kaya ·

    Hi,
    I have been searching for this plug in for so long but it will not work,
    I am using WP 2.6.3,
    Please help

    Kaya

  • Moshu ·

    “will not work” is not the best technical description…
    What exactly doesn’t work? It works for others, so most likely you are doing something wrong.

  • Kaya ·

    Hi Moshu,

    I installed and activated the plugin and made the changes which I want the dates in ascending order
    But nothing happens. Check this page http://panicattackrx.com/information/panic_attack_causes/
    Thanks

    Kaya

  • bcarter ·

    This plugin works, and doesn’t work.
    It works on the is_catgory, but not the cat_48 specific. What I am trying to say is it doesn’t work when setting the showposts for specific categories. I am on WP 2.6.3

    Is there any documentation?
    Am I missing something?
    I’m willing to do some work if someone can help me.

  • Moshu ·

    No, there isn’t any specific documentation, as far as I know.
    Any chance that the categories in case are sub-categories? There might be some issues with the subcats and I didn’t really have time to look into it.

  • den ·

    I was hesitant at first coz the older version crashed my site. After some more reading, I was convinced to try and…. voila! Worked like a charm in Wordpress 2.6.3

    Thank you very much!

27 Trackbacks/Pingbacks

  1. WP Anzahl der Beiträge definieren (CQS) | funkygog Blog
  2. Weblog Tools Collection » Blog Archive » WordPress Plugin Releases for 11/2
  3. New WordPress Plugins | My Blog Quest
  4. Custom Query String Gets Reloaded For WordPress 2.3 : Average Joe Blogger
  5. BlogBroker » WordPress Plugin Releases for 11/2
  6. Tech Projects » Upgrade to 2.3
  7. Recopilación de themes para tu wordpress » Comenta o Muere | Actualidad, Humor, Tecnología, Política, Ciencia, Música… y otros muchos temas de los que merece la pena hablar.
  8. ?ー??れ??? » Custom Query String Reloaded
  9. 最新(11月)wordpress?件汇总(plugin) | 第?城市
  10. WordPress Plugins - WordPress ?件列表 11月2日 - WordPressCHINA - WordPress中文化
  11. Custom Query String Plugin für Wordpress 2.3 | Internet Marketing SEO
  12. BlogBroker » WordPress Plugins Pack 8/07
  13. I’d Rather Be Writing » Blog Archive » My Blog and Podcast Site Are Now Merged into One — Steps on How I Did It
  14. » CQS: personalizzare il numero di post da mostrare » Blogg ‘R
  15. afewgoodpens.com » Blog Archive » links for 2008-07-23
  16. Genome Dynamics » Blog Archive » custom query string reloaded
  17. WordPressでページ毎の表示投稿数を制御するプラグイン【Custom Query String Reloaded】 | [k]id
  18. Photoblog Themes for Wordpress » Click!
  19. Photoblog Themes for Wordpress » Polaroid
  20. Photoblog Themes for Wordpress » Polaroid2
  21. Photoblog Themes for Wordpress » Tan
  22. Photoblog Themes for Wordpress » SimpleT
  23. Photoblog Themes for Wordpress » Spotless
  24. Wordpress: 6 Themes pour photoblog gratuit + traduction Fr | Cahuete.com
  25. Wordpress: Different Number of Posts on Home Page | Pratthost Developer Zone
  26. 投稿を並び替える6つの方法 « アスーカル・ITレビュー
  27. Creating a photoblog | Paul Henman at henman.ca

RSS feed for comments on this post.   TrackBack URI

Leave a Reply


or read more about The Pension Report!