Thanks alchymyth,
As mentioned I am using the Widget Logic plugin, which only accesses WP Conditional Tags… so the question remains:
How can I test for NOT being the Homepage, in order to place a widget? It would be unfortunate to have to stick with IS_ (a true result). That would not only mean a bunch of pages to test – as in your original response:
!is_page('events')
…but would also require UPDATING, whenever another page gets added. An untenable solution.
It seems to me that wanting to see content show up on everything BUT the Homepage is a fairly common occurrence. Any other ideas?
How can I test for NOT being the Homepage
i edited my reply very shortly after posting it –
for not showing something on the home (blog) page, try:
!is_home()
or check through all the available conditional tags:
http://codex.wordpress.org/Conditional_Tags
Again thanks Alchymyth – the winning entry was: !is_front_page().
!is_home() had no effect, but I suspect that is due to setting my homepage to an actual “page”. Moving along now… cheers!
I’m also using Widget Logic but need a conditional tag to not show a widget in one particular page. I’ve tried to guess using the information given above but it doesn’t work. If I have a page called ‘book now’, I want the widget to show on all pages except ‘book now’. What do I have to put? I’m no code expert. Many thanks.
Lesley – If it’s a page you can use is_page()
http://codex.wordpress.org/Function_Reference/is_page
So for widget logic you’d put !is_page('book-now') probably (if that’s the page slug).
Thanks Ipstenu, that worked!