WP Manifestindependent plugin directory
manifest / media / wp-rotate-banner

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

0stars
0forks

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.zip

Rotate 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

  1. Upload and activate the plugin.
  2. Go to Rotate Banners > Add New.
  3. Add a title, select a banner image, and publish the banner.
  4. Repeat for each banner.
  5. Go to Rotate Banners > Settings and choose the display mode, interval, and rotation start date.
  6. 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.