Plugin / Ad Rotator

Dmytro Shteflyuk



Ad Rotator is a simple WordPress widget to display random HTML code
from a given group of HTML-chunks separated with <!--more-->
on sidebar. Basically it shows different HTML every time you requesting
page. There are infinite number of instances of this widget may exist.


If you have any suggestions, found a bug, or just wanted to say “thank
you”,– feel free to email me [email protected].
Promise, I will answer every email I received.

If you want to contribute your code, see the Development section under
the Other Notes tab.

Migrating from AdRotator plugin

plugin is a simple file-based ad rotation solution. It was developed by
Angsuman Chakraborty long time ago, but occasionally we have the same
plugin names from WordPress’ point of view. If you are using this plugin,
you may click upgrade link from your Plugins page and it being replaced
with Ad Rotator widget.

So now you have two ways to solve the problem 'getad()' function is undefined:
1. you can download AdRotator and ignore upgrade notices, or
2. you can upgrade your theme to use Ad Rotator Widget.

Here is how to upgrade your theme. Find all occurrences of getad function,
and replace them with something like this:

  'name' => 'ad-area',
  'id' => 'ad-area',
  'before_widget' => '',
  'after_widget' => '',
  'before_title' => '',
  'after_title' => ''

Make sure you’ve replaced ad-area with the name suitable for you. Also
you can specify additional options, like before_title and after_title.

Then open the Appearence/Widgets page in Site Admin and configure
Ad Rotator widget instances for your advertisements area. Just take into
account, that in files for AdRotator ads are separated with new line
character (ie each line means separate ad), but in Ad Rotator widget
you should separate you blocks with <!--more--> (so each of them
may contain more then one line.)

Anyways, sorry for сonfusion, I did not want to сheat on you.


Sources of this plugin are available both in SVN and Git:

Feel free to check them out, make your changes and send me patches.
Promise, I will apply every patch (of course, if they add a value to the
product). Email for patches, suggestions, or bug reports:
[email protected].


1 reviews

Rating breakdown

Details Information



First Released

16 Apr, 2007

Total Downloads


Wordpress Version

2.8.0 or higher

Tested up to:


Require PHP Version:





The plugin hasn't been transalated in any language other than English.


The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.