Querybased templates - A bit dense, can someone help me there? (5 posts)

  1. lhk
    Posted 10 years ago #


    I have different templates as per category. I also want to display single posts using that same template. Apparently I need to use query-based templates for the latter. The code I found here: http://codex.wordpress.org/Theme_Development#Query-based_Templates

    But from this point on I seem to be dense. Where exactly do I use this code?

    And - I use Laila 2.0 (http://orangescale.com) - actually the main thing I want to do is change the header image according to category/posts in set category. Anyone know of an easier way for this than creating category templates for each category?

  2. moshu
    Posted 10 years ago #

    Kaf has a plugin:
    and on the same page there is a link to another one: "inheritor" :)

  3. lhk
    Posted 10 years ago #

    Hi moshu,

    I pull my hat on your phenomenal knowledge about plugins! You always have one up your sleeve :-)

    I'll try those.

  4. moshu
    Posted 10 years ago #

    Been "cursed" with good memory :)
    All the credits go to the plugin authors...

  5. lhk
    Posted 10 years ago #

    Hi again,

    yep, moshu, these two do the trick just nicely. Thanks again for the links ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic