Is there a way to not display adsense on certain wordpress blog post pages? There is one particular page where I don't want the ads to be displayed. The only way I can think of is to make the post a page instead and not include the adsense code on the page template? Is there a different way?
No mate. I am placing the adsense code directly into the single post template. I'm looking for a way to disable adsense from showing on a certain post.
Well, you'd have to add something like [noadsense] somewhere in your posts and make your script search this string in your blogpost. If found, it won't insert the adsense code into it. PHP can do this. I would, however, use All in One Adsense and YPN. This one does what you need: you can tell it to disable ads on a certain post by addind some string (similar to the one before)
All this seemed to do was copy this text on the page. I will try the wp plugin. Thanks for the suggestion.
Check out this code show ads only on Homepage , you can tweak it a bit like this : <?php if (is_single('beef-stew') ) { ?> Code which can be shown on the post with slug - beef-stew <?php } ?> Check out the wordpress conditional tags for more You can make the codes show ads whenever there is no post slug with your mentional slug info. Hope it helps!
why don't u use plugin like adman, all in one adsense and YNP they are more easily to use and customization is also take few min. Try to use a plugin so there will be option when u write new post or page, which will ask about disabling ads.