OK. I need to place an advertisement between the 2nd and 3rd posts on my main page. Right now I have this code in my loop. What should I change to make it do between the 2nd and 3rd post? Can I just do ad_shown==1 for the next one and then change the ad_show=1 to be ad_shown=ad_shown+1;.

Thanks


<?php if (!isset($ad_shown)) { ?>
ADVERT HERE

<?php
$ad_shown = 1;
}
?>