I am playing around with Adsense on one of my blogs, but there are a few posts in particular that I'd like to remove it completely.
In my single.php file, I am doing this and it works fine
but when I try to exclude more posts, it's not working
and this doesn't work either
What am I doing wrong? newbish question I know but I'm learning
In my single.php file, I am doing this and it works fine
<?php if(!is_single('1')) : ?>
//adsense code
<?php endif; ?>
but when I try to exclude more posts, it's not working
<?php if(!is_single('1') || !is_single('2')) : ?>
//adsense code
<?php endif; ?>
and this doesn't work either
<?php if(!is_single('1') && !is_single('2')) : ?>
//adsense code
<?php endif; ?>
What am I doing wrong? newbish question I know but I'm learning
