[SOLVED] Adsense between posts on category pages
Hi,
I'm trying to insert Adsense ads after every 3rd item on my category pages. I'm using this code, which puts the ad after the 3rd item, but I'd also like to put an ad after the 6th item (or every third item). How would I do that? I tried 3,6 but caused a scary looking parsing error! ;) Code:
<?php if ( is_category() AND $bfa_ata['postcount'] == 3 ) { ?> Here is a sample URL: http://www.livingonadime.com/categor...ocery-savings/ Thanks! Michael |
Try this
HTML Code:
<?php if ( is_category() AND (($bfa_ata['postcount'] == 3 ) OR ($bfa_ata['postcount'] == 6 )) ) { ?> |
Thanks, I'll try that!
Michael |
Just letting you know -- That worked great! Thanks, Juggledad!
|
All times are GMT -6. The time now is 08:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.