I was trying to have an ad displayed after every fourth blog post (“test” would have been replaced w/ the ad code), I was going to use gmp_mod with the post id number, but I f0und an easier way to do it:
<?
if ($my_id == 0)
{
echo “<br><br><div align=center>”;
include (‘ad.inc’);
$my_id = 3;
echo “</div><br><br>”;
}
else
$my_id–;
?>
You can see it in action here: https://certification.foundnews.com/