post Category: Wordpress, Wordpress Plugins — krisna @ 3:38 am — post

I really tired to put ads code using adsense deluxe plugin in my wordpress blog because one of the paid review don’t want me to put Adsense code after the post title.

Thanks to JohnTP for the post how to remove ads in certain category. So I can remove all of my ads at all of my posts which is in review category. And here is the php code:

<?php
if ( !in_category(17) && !in_category(19) && !in_category(10) && !in_category(26)) {
?>
Your ad code here
<?php } ?>

In the code 17, 19, 10 and 26 are the category ID which do you want to remove the ads. Now I can reduce my work with this code.

Sorry, no comments yet.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.