Hi everyone,
I have been searching for answers for HOURS - I haven't found anything that helps, so I hope this isn't a repeast question...
Basically, I have am building a site where the home page is set to a static page... I then have 3 other static pages, and one more called 'store' which displays the posts of my blog - blog entries are simply products... that's all fine...
The problem is that I have a sidebar which displays on every page, and I only want it to display on the 'store' page... I can get it to only display on any other page, using a variety of methods - as I said, I have been trying for hours!! I wanted to do it with page ID or page title, but neither of them work for this page... all the others, yes, but not this one...
When I print the page id on the store page it comes out as being 1, where as it is 10 in the url... but neither work in my if statement... if pageid works for every page but that one...
I tried is_category and have_posts too, but since pages are posts they didn't work either... I applied a category to just the posts in the blog, but it was applied to all the pages too...
Does anyone have any idea why the page ID doesn't work on the blog page? Or if there is anything else I can use? I'm going out of my mind!!