When you say “blog roll”, are you meaning the list of links you’ve created in your Links Manager? Or the main blog page that shows the 10 (for example) most recent posts?
As far as the individual posts vs. pages, I’d think is_single() would work for the individual post entries.
You can also negate a conditional tag, like so:
!(is_page()) // same as saying is not a page
I mean the main blog page that the most recent posts.
If you look on my site the footer is showing up in individual posts but not this main blog page with the code !is_page()
Does those extra brackets make a difference?
You can see how it is working at http://drjessechappus.com/blog
Thanks for any info!
Hmm. It sounds like you need to come up with a pairing of conditional tags that says:
Show the footer if . . .
1) If the current item being viewed is NOT a page
(you’ve already accomplished this part)
2) OR, if the current item being viewed is the home/front page
(this could be either is_front_page or is_home depending upon your WordPress settings)
Based on what I can see, I’d suggest trying this one first:
( is_front_page() || !(is_page()) )
If that doesn’t get what you want, then try this:
( is_home() || !(is_page()) )
The extra brackets can make a difference, depending upon when/how they are used. I tend to overuse them to be more “specific” I suppose, if that makes sense.
Thanks for your help @andrewmills!
I figured out a code that works – ! is_page() || is_page_template( ‘page_blog.php’ )