• We’ve just started using WordPress for web magazine publishing and we’ve been blown away… Amazing CMS!

    I have to ask, and I’m not sure if I’m just missing something here but we’re looking to apply individual post templates to each post, so that each post can have individually customized side bars (through widgets) and individual headers.

    The main reason for this is so that we can have different advertising banner/skyscraper layouts for each post. But also so we can have different types of sidebar configurations for each post.

    I’m using a decent theme template. How do I manage to achieve this without a serious amount of hard coding?

    Am I missing something obvious here or is there a plug that’s available?

    Would be really grateful to hear back from anyone on this one

    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • With regard to using different headers, see:

    http://quirm.net/2009/08/07/changing-headers-with-wordpress-body_class/

    The only obvious way I can think of to load different sidebars is to use the is_single() conditional and have something like:

    <?php if(is_single('Foo')) get_sidebar('foo'); // calls sidebar-foo.php
    elseif(is_single('Bar')) get_sidebar('bar'); // calls sidebar-bar.php
    else get_sidebar(); // generic sidebar
    ?>

    in single.php. Still involves a lot of coding setting it all up, though.

    http://codex.wordpress.org/Conditional_Tags#A_Single_Post_Page

    Thread Starter andy2009

    (@andy2009)

    Thanks a lot Esmi. The header tips were really useful.

    With the side bar configurations I was looking for something a but easier as we’ve got a ton of posts that we want to have individual side bar configurations on.

    Does anyone know of a plug-in or quick fix to create templates for posts allowing templates to be made up using the WP side bar widgets function?
    Thanks
    Andy

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different side bars and heading for each post’ is closed to new replies.