How do you exclude a page from showing a widget?
-
What conditional tag should I use to exclude a page?
I want a widget to appear on all my Pages except for the main blog Page which is……….. https://www.website.com/blog/
The /blog post ID = 2358
I don’t want the widget to show up on /blog page or any posts….eg. /blog/titleofarticle/
When I use
is_page(‘2358’) – widget only appears on /blog page however not on any pages or posts
!is_page(‘2358’) – widget doesn’t appear on /blog……..however it appears on all Pages and my blog posts (e.g. /blog/titleofarticle/)The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do you exclude a page from showing a widget?’ is closed to new replies.