So… I have a conditional statement in my sidebar.php that goes like this: if( is_home() ), everyone’s familiar with it, right?
Please tell me guys, why the hell it works well on pages with default page template, but when I choose “Blog” (my custom) page template, the conditional statement returns true 
I will appreciate any help as I’m struggling with this for some time now 
Did you so happen to choose that page as your static home page? 
Did you so happen to choose that page as your static home page?![]()
Heh nope ;p when I change the template to default everything works as it should. The same happens for every other pages.
i believe that when you change your homepage to a static one wordpress uses the index.php or home.php to provide the template for that page rather than the one you include in your pages properties.
Maybe make sure that the conditional appears in one of these pages to make it work.
is_home() returns true on your posts page. This could mean:
1. Homepage when Settings>Reading says ‘Show my latest posts’
2. Blog page when Settings>Reading uses a static homepage and the same blog page for latest posts.
My Settings>Reading “Front page displays” is set to “Your latest posts”. I use a custom page template with custom query that queries posts with post type of blog. No matter which page (be it a about, contact or blog) I set to “Blog” page template, the is_home() returns true. I will try and create any other page template and see what happens then.
Any more ideas?
UPDATE :
When I delete custom query from my blog.php file everything goes back to normal, but then why would I need a blog page template without posts on it? And why the f* would custom query make a difference while checking for homepage?? 
//custom query here wp_reset_query(); //reset the query
hope this help 
try to reset your query post mate//custom query here wp_reset_query(); //reset the queryhope this help![]()
You rock mate…!!! Thanks a lot! Worked like a charm 
