I have my blog set to have a static page as the home page, and then the page "blog" as the blog page.
I want a custom sidebar to show on my blog page as I've done with all the other pages/categories throughout my site, but I can't get it to work.
My sidebar.php which is included in my page template has:
<?php } else if (is_home() || is_page(8) || in_category(1) || is_category(1)) { // "Blog" category pages ?>
<div id="sidebar">
<ul>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Blog') ) : ?>
<?php endif; ?>
</ul>
</div>
'8' is the blog page id, and '1' is the category for blog posts and I added 'is_home()' because according to the codex, this should work on the blog posts page when a static front page is set.
I've registered my custom sidebar called "Blog" in my functions.php:
register_sidebar(array('name'=>'Blog',
'before_widget' => '<div class="sidebarwidget">',
'after_widget' => '</div>',
'before_title' => '<div class="widgettitle">',
'after_title' => '</div>',
));
And, lastly, I have put some widgets in my 'Blog' sidebar. The Blog sidebar shows on single posts in the blog category, or a category page, but not on the PAGE I created called 'Blog' where my blog posts show.
Here is the page which is showing a sidebar for a different page of the site: http://bellingham.org.customers.tigertech.net/discover/blog/
And here is a single post from the Blog category that is showing the right sidebar for the Blog pages: http://bellingham.org.customers.tigertech.net/blog/annual-old-settlers-picnic-in-ferndale/
Any idea how I get it to cooperate and show the right sidebar on the main Blog page?