AdRotate 2.2 for WordPress Upgrade Problem

I recently upgraded my AdRotate plugin from 2.1 to 2.2. After upgrade, I found that the ads were not showing  up any more. I thought there might be some conflicts between plugins. I tried to de-activate and re-activate the plugin, but it didn’t help.

If you’re thinking about purchasing a new GPU, we’d greatly appreciate it if you used our Amazon Associate links. The price you pay will be exactly the same, but Amazon provides us with a small commission for each purchase. It’s a simple way to support our site and helps us keep creating useful content for you. Recommended GPUs: RTX 5090, RTX 5080, and RTX 5070. #ad

Checking the author’s web site and I found that the way to embed it in the php files has changed. The old way of embedding it is:

<?php adrotate_banner('1'); ?>

This does not work anymore in 2.2. You have to code it this way.

<?php echo adrotate_banner('1'); ?>

Be the first to comment

Leave a Reply