• I am working on a site that has one instillation managing several blogs and the problem is that the sidebar on the singe.php can only have one look, which doesn’t really work for me.

    I’m wondering if there is a plugin or a widget or even a straight up hack through the system that I could use that would manage this a bit better. You can see the site I’m working on at http://www.suncoach.com and you can notice that the news, blog, articles and press are all managed by the blog but I need to get a separate sidebar for each of their single.php files to make it work right.

    Any help would be awesome!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Create your new sidebars and call them sidebar-news.php, sidebar-articles.phpandsidebar-press.php`.

    Add the following code block to all relevant template files in place of get_sidebar():

    <?php if(in_category('News')) get_sidebar('news');
    elseif(in_category('Articles')) get_sidebar('articles');
    elseif(in_category('Press')) get_sidebar('press');
    else get_sidebar();?>
    Thread Starter danielnicolai

    (@danielnicolai)

    Thanks Esmi, I knew this should be easy I just couldn’t figure it out. REally bothered me.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Load Pages by Category’ is closed to new replies.