How to exclude adsense on certain pages and posts?
-
Hello,
I know how to exclude adsense on pages or blog posts, but I can’t figure out how to add exceptions for both at the same time.
This is the code I use for pages:<?php if (!is_page(array('privacy-policy', 'terms-and-condition'))) { ?> <---Adsense code---> <?php } ?>How do I add exception for !is_single as well?
Thanks!
The blog I need help with is: (visible only to logged in users)
-
The site you are asking about does not seem to be hosted on WordPress.COM so you need to make friends over at WordPress.ORG the keepers of the software you are using.
This site is for support of sites hosted on WordPress.COM. You should address your questions to WordPress.ORG the keepers of the software you are using: http://wordpress.org/support/
The forum at WordPress.ORG is not connected to WordPress.COM so you will need to open an account at .ORG if you do not already have one. You may use the same email at WordPress.ORG as you do at WordPress.COM.
For more on the difference: http://support.wordpress.com/com-vs-org/
If you are asking for help with a WordPress.COM site then we need a link to that site to give you accurate help.
- The topic ‘How to exclude adsense on certain pages and posts?’ is closed to new replies.