• Hello,

    I’m currently running ads after a certain post number.
    I have code like that:

    <?php $count = 1; ?>
    <?phpif( have_posts( ) )
    <?php if ($count==2) : ?>

    So basically I have an ad running after the second post. I can change that to 3rd, 4th or etc. But how do I change that to a random number 1 to 10?
    <?php if ($count==2) : ?> need to be changed to random number but less than 10….

    Thank you.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Random ads’ is closed to new replies.