• Resolved timkraaijvanger

    (@timkraaijvanger)


    I want to rotate ads 4, 5 and 6. I know I can use an alternative plugin for this (AdRotate), but I don’t want an overload of installed plugins.

    I tried this, but it doesn’t work:
    <?php echo do_shortcode(‘[adblockingdetector id=”‘.mt_rand(4,6).'”]’); ?>

    Can anyone help me? Thanks in advance!

    https://ww.wp.xz.cn/plugins/ad-blocking-detector/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I do not see any reason that shouldn’t work, so if you provide some more detail, like the answers to the questions below, perhaps I can help nail down the issue.

    How does that code fail? Does it yield a PHP error? How about an Ad Blocking Detector error message? Does this behave appropriately if you remove the rotation code (e.g. ‘[adblockingdetector id=”4″]’)?

    Marking this thread resolved due to inactivity.

    If the problem is not fixed, don’t hesitate to provide the requested information and I’ll re-open the issue.

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

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