WP Rotate Banner
Rotate banners by day interval or by each banner's selected date range. Use the widget or the [rotate_banner] shortcode.
by Ashish Patel · github.com/ashishpatel1992/wp-rotate-banner
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ashishpatel1992/wp-rotate-banner/archive/refs/heads/main.zipRotate banners by a fixed day interval or show banners during selected date ranges.
Description
WP Rotate Banner adds a Rotate Banners admin menu where you can create banner entries with an image, optional link, optional alt text, and optional start/end dates.
Use the Settings screen to choose:
- Rotate all published banners every selected number of days.
- Show only banners that are active inside their selected date ranges.
The current banner can be displayed with a widget or the [rotate_banner] shortcode.
Usage
- Upload and activate the plugin.
- Go to Rotate Banners > Add New.
- Add a title, select a banner image, and publish the banner.
- Repeat for each banner.
- Go to Rotate Banners > Settings and choose the display mode, interval, and rotation start date.
- Add the Rotate Banner widget or place
[rotate_banner]in page content.
Shortcode examples:
[rotate_banner]
[rotate_banner width="100%" height="250px" class="homepage-banner"]
Notes
Banner order is controlled by the Order field in the Page Attributes box on each banner edit screen. Lower order values display earlier in the rotation.
If date-based display is enabled and more than one banner is active on the same day, the plugin rotates through those active banners using the configured interval.