• Looking to start an Amazon Affiliate Store?

    Associate-O-Matic

Query Posts Widget Plugin + Widgetized Page Template + Widget Logic = WordPress Gold

You may remember my post from last week describing Justin Tadlock’s amazing Query Posts Widget Plugin, and you may have seen the video showing a quick overview of this plugin’s functionality here or here. When I created that first post and video, I knew the possibilities were numerous, and I had read about using this plugin in conjuction with widgetized page templates, but I was having trouble getting my head around the concept. Mostly because I hadn’t taken advantage of widgetized page templates yet. If you aren’t familiar with widgetized page templates, download the Hybrid theme.

I have seen the light folks, and I’ve created video to show you the true power of combining the Query Posts Widget plugin, a Widgetized Page Template, and the Widget Logic plugin. It’s 9:52 long, but it’s filled with information. If you have any comments about the plugins or the video, please leave a comment below.

This entry was posted in WordPress Tutorials and tagged , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

27 Comments

  1. Posted March 25, 2009 at 2:52 am | Permalink

    The Query Posts widget looks interesting thanks for the tutorial! We created a plugin called Widget Locationizer that is similar to Widget Logic but it does a few more things. You can find it in the WP repository: wordpress.org/extend/plugins/widget-locationizer

    Kevins last blog post..Ultimate Review of Best VPS Web Hosting Service Providers Compared

  2. Posted March 25, 2009 at 6:35 am | Permalink

    Great video came over from Theme Hybrid. There is so much to Hybrid, Query Posts, and Widget logic, that you are only bound by your imagination.

    I have been using Query Posts since it was in beta and have had a blast finding ways to use it. I am looking forward to more video’s like this and I am sure Justin wouldn’t mind either, save him a little time on the forum’s. :)

    Thanks!

    Craigs last blog post..New Client and Site Diesel to Propane Conversion Kits

  3. Posted March 25, 2009 at 7:49 am | Permalink

    Thanks for the kudos Craig, you’re absolutely right about the innumerable uses of this combination of tools. I know Justin is a busy guy and it’s my way of trying to give back for all he’s done for the WP community (and me). I’ll keep the videos coming as I learn more…

  4. Posted March 25, 2009 at 7:51 am | Permalink

    Hi Kevin,

    Thanks for letting us know about your Widget Locationizer, it looks like a valid alternative. Nice work!

  5. rgregory
    Posted March 25, 2009 at 7:53 pm | Permalink

    Thanks a lot for this. I’ll be watching your blog for more video tutorials. I have been wondering what all the fuss is about, you are demystifying quite a few things for me.

    Keep up the good work!

  6. Posted March 25, 2009 at 8:11 pm | Permalink

    Hey Rusti,
    You’re quite welcome, and I will do my best to keep it up. I like your site too, the look really fits your intended message.

  7. rgregory
    Posted March 26, 2009 at 9:23 am | Permalink

    Thanks, I am just waiting to redesign it this summer with WP. I just really learned about WP in the past few months and had all but retired from my small business. I am a teacher and couldn’t find the time, but I think with WP and people like you and Justin contributing your talents I can make a go of it.

  8. Posted March 26, 2009 at 10:04 am | Permalink

    Welcome to the wonderful world of WordPress:)

  9. Posted April 3, 2009 at 6:46 am | Permalink

    Thanks for that plugin man! Thats awesome i was looking for. I am looking forward to more video’s like this.
    I’ll be watching your blog for more video tutorials. To the bbokmarks).

  10. Posted April 4, 2009 at 2:20 am | Permalink

    Query post widget plugin, just another leaf from the think tank of Justin Tadlock.
    And well done modder, as you said, the video is full of information..

    Srirajs last blog post..New Pension System (NPS) by PFRDA

  11. Christina
    Posted April 5, 2009 at 1:33 pm | Permalink

    Hey Im not seeing the thumbnails option is there something you need to do to see that?

  12. Posted April 6, 2009 at 8:08 am | Permalink

    @ Sriraj,

    Thank you, I hope to create several more tutorial videos…

  13. Posted April 6, 2009 at 8:15 am | Permalink

    @Christina,

    The thumbnails option is called get_the_image. There could be a couple reasons that you’re not seeing it. From the Query Posts Widget Plugin readme.txt file:

    = How do I show thumbnails? =

    This plugin integrates quite nicely with the Get the Image plugin. If you’ve activated that plugin, you will have an additional checkbox to show thumbnails. Thumbnails will not be shown if `list` is selected for `display`.

  14. Posted April 15, 2009 at 4:02 am | Permalink

    i got a few questions about that thumbnail thing and widget logic –
    1. what if there are 2 or more images in the posts?
    2. how can i edit how the posts are displayed? e.g. the thumbnails on the right side
    3. is it possible to use widget logic like:
    “display this widget: if page ID = 5 OR page ID = 58″ ?

  15. Posted April 15, 2009 at 7:44 am | Permalink

    @ Sumit,

    1. It grabs the first image in a post, but there are some options, please see the readme.html that’s included with the get_the_image plugin.

    2. The get_the_image plugin adds css classes to images that it gets. You can style your images (move them to the right). This is explained in further detail in the readme.html.

    3. Yes. You need to put the page IDs in an array, like this:

    is_single(array(151, 158, 123))

    I hope that helps:)

  16. Posted April 15, 2009 at 8:16 am | Permalink

    helps a lot! Cheers man

    Sumits last blog post..Kontrastreiches Japan

  17. kkri
    Posted April 27, 2009 at 10:12 am | Permalink

    Hi. This plugin seems to be all that I need to do my site navigation very nice and to finish my blog. I saw the video tutorial but I can’t see on my write page the field “template” you tell should be at the bottom of the page, neither the menu where there is “Utility:Widgets template”. I use WP 2.7.1.
    It depends on the fact I don’t use Hybrid theme? I can’t use the Query Posts and Widget Logic plugins in my widgetized theme? Should I also have the Get the Image plugin? Please, tell me I can do it… ;)

  18. Posted April 27, 2009 at 10:32 am | Permalink

    Hi kkri,

    To do exactly what the video describes, you would need the Hybrid theme by Justin Tadlock. His theme contains the “widgetized” page template and the “Utility: Widgets Template” widget that is used in conjunction with the “widgetized” page template.

    Having a widgetized theme is necessary, but to do what I’ve done above, you would also need a widgetized page template and the “Get the Image” plugin.

    This post should help: http://themehybrid.com/support/topic/help-with-creating-a-widgetized-page-and-integrating-query-posts-plugin

    If you found this useful, please share a link to my site anywhere you feel it’s appropriate:)

  19. Scott
    Posted April 28, 2009 at 7:51 pm | Permalink

    Nice Job on the video. Very helpful.

  20. kkri
    Posted April 29, 2009 at 5:51 pm | Permalink

    Hi, WordPress Modder.
    I installed the plugin Query Posts ,”With A Little Help from my friend” ;)
    I need to know how the creation of thumbnails work. I mean: this is the line I have in the query-posts.php actually:
    array( ‘feature_img’ ), ‘default_size’ => ‘thumbnail’, ‘width’ => ‘100′, ‘height’ => ‘75′, ‘image_class’ => ‘feature’ ) ); ?>
    I had to changed it because otherwise with
    array( ‘Thumbnail’, ‘thumbnail’ ), ‘default_size’ => ‘thumbnail’ ) ); ?>
    it doesn’t change the image size. I set WP settings–> media into thumbnail size w 100 and h 75 and checked to cut the image at the right size. But it always create bigger thumbs, size 300×300. Should I change something in the Get The Image plugin?
    Which are the correct settings from the Wp dashboard and the right code to put in the query-post.php?
    I’m so near to see the right result, and I can’t get it! Awful! ;)

  21. kkri
    Posted April 29, 2009 at 5:58 pm | Permalink

    Oops, sorry:

    actually I have:

    array( ‘feature_img’ ), ‘default_size’ => ‘thumbnail’, ‘width’ => ‘100′, ‘height’ => ‘75′, ‘image_class’ => ‘feature’ ) ); ?>

    and before it was:

    array ( ‘Thumbnail’, ‘thumbnail’ ), ‘default_size’ => ‘thumbnail’ ) ); ?>

    Thanks…

  22. kkri
    Posted April 29, 2009 at 6:02 pm | Permalink

    It’s not my fault! I paste all…

    array( ‘Thumbnail’, ‘thumbnail’ ), ‘default_size’ => ‘thumbnail’ ) ); ?>

    and

    array( ‘feature_img’ ), ‘default_size’ => ‘thumbnail’, ‘width’ => ‘100′, ‘height’ => ‘75′, ‘image_class’ => ‘feature’ ) ); ?>

    Hope it’ok now…

  23. Posted June 2, 2009 at 11:10 pm | Permalink

    Thanks for this great video explanation for this great plugin

    Canons last blog post..Dukes Special Drum Tutorial Preview on Now Play It

  24. Ron
    Posted August 6, 2009 at 5:29 am | Permalink

    Great post,

    I always had problems wrapping my head around the Widget Logic plugin, this video helped clear it up a little bit.
    Thanks

  25. Posted August 6, 2009 at 8:54 am | Permalink

    Thanks Ron, glad I could help out:)

  26. christina rule
    Posted August 6, 2009 at 12:35 pm | Permalink

    Is it possible to put this in a sidebar? or maybe someone would know a solution to my problem I am having… I want to have certain “things of the month” like DJ of the month and Producer of the month on my wordpress page…. I want there to be a thumbnail image in the sidebar with maybe their name and a little caption…. when the user clicks on it I want it to go to a page similar to how the pages look with the query post… how they are all lined up with the thumbnail and the excerpt of the story…so you can see all the past “people of the month ” as well.. sdoes anyone have any suggestions on the best way to do this?

  27. robert phillips
    Posted January 3, 2010 at 12:22 pm | Permalink

    Wonderful videos! Explanations very clear, and followups to queries ditto.

    Now I’ve got …curve ball :D

    Supposing I have a static HOME page. (blog is, obviously, on the BLOG page). Supposing I have 5 categories of BLOG posts. I want to display 3 of those categories on the static HOME. Now…

    How can I get the static HOME page to have 3 instances of the Query Post plugin in order to display from my three chosen categories?

    thanks!

    %%robert

3 Trackbacks

  1. By Query Posts Widget: WordPress Plugin on March 24, 2009 at 9:40 pm

    [...] Query Posts Widget + A Widgetized Page Template + Widget Logic [...]

  2. [...] In: Wordpress plugins 6 Jul 2009 CHECK THIS OUT! CRAZY. No need to create page templates. Create queries, put them into widgets, and make separate pages! Go to Source [...]

  3. [...] To go one step further you can combine this plugin with the Widget Logic plugin to show or hide it using WordPress Conditionals. For more information about this technique refer to WordPress Modder’s post Query Posts Widget Plugin + Widgetized Page Template + Widget Logic = WordPress Gold. [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Advertise Here

    Interested in advertising your site or service? Drop me a line here.