Reply To: Index page post ad injection after 2 posts

Not one for queueing up? Get faster support with AdRotate Pro!
The forum is checked a few times per week. With AdRotate Pro you can get answers faster using email support.
More private, more direct and usually a solution within a day! Learn more »

Home Forums AdRotate for WordPress Installation and Setup Index page post ad injection after 2 posts Reply To: Index page post ad injection after 2 posts

#19944

Arnan
Badges:

Just before the first post/loop.
$ad_count = 0

Just before the loop ends:
$ad_count++;

And where you want to place the advert/group (presumably right behind the the_content() or near it).

if($ad_count == 2) echo adrotate_group(23);
if($ad_count == 4) echo adrotate_group(29);
if($ad_count == 6) echo adrotate_group(30);

That should work đŸ™‚