AdRotate
Created: May 23, 2008. Updated: January 27, 2010 by Arnan| Name | AdRotate |
|---|---|
| Support | Support Forum |
| On this page | Main Get started Changelog |
You’ve activated AdRotate – Now what?
In your dashboard navigation you’ll find a new menu.

Create your first banner
Since banners are required to be in groups you need to make a group first. You can do so in the ‘Manage Banners’ page.

Once you’ve done that. Go to ‘Add|Edit Banner’ and fill in the appropriate fields.

(adsense example, click to enlarge)
If you leave the start and end time empty, AdRotate will generate today (now) as a start date and show the banner for exactly one year. This can be changed at any time.
If you’ve created your own banner and want to see how many clicks you have. Use %link% where you would put the URL and fill in the URL in the URL field in the advanced options. Also make sure to tick the checkbox.
To show an image. Upload the image to the wp-content/banners/ folder and select the image in the dropdown. In the banner use %image% where the image should show.
Once you’re done, simply click save.
Add banners to pages or posts
Insert the following PHP code in index.php, page.php or single.php of your theme. Anywhere where you want the banner to show, as many as you like.
Per banner code you show a group, add this to show group 1:
<?php echo adrotate_banner('1'); ?>
And for showing a specific banner use this (where 12 is the banner ID):
<?php echo adrotate_banner('3', '12'); ?>
Multiple groups and a random banner from either group:
<?php echo adrotate_banner('3,2,6'); ?>
Using shortcode you can insert banners into posts and pages from the dashboard as well.
A random banner:
[adrotate group="2"]
A specific banner (where 12 is the banner ID and 4 the group ID):
[adrotate group="4" banner="12"]
Multiple groups and a random banner from either group:
[adrotate group="4,12,5,2"]
Blocks of ads!
AdRotate now allows you to create blocks of ads. This can be any amount of ads and rotate any amount of ads in one block.
It’s easiest to create a group and put a bunch of ads on there. Say you want a block of 4 ads from group 2. Use the following:
[adrotate group="2" block="4" column="2"]
Group 2 can have more than 4 banners, but just 4 at a time will show. In random order randomly picked. The column option tells AdRotate to divide the banners in that many columns. This is optional.
To insert this feature in your php use something like:
<?php echo adrotate_banner(1,0,4,3); ?>
Group 1, no specific banner (which is not possible with a block), show 4 ads at a time in 3 columns.
Banners in the sidebar?
Well yes, you can use the above PHP codes or use the widget.
The widget can be found in the Appearance > Widgets menu.

