i4w_rotation

Usage:

This shortcode provides a mechanism to automatically “rotate” content every time a page is visited.

Rotation automatically resets to the beginning if a visitor has looped through all content.

Multiple, distinct rotations can be established.

This shortcode does NOT supports conditional branching with [ELSE_rotation].

Shortcode nesting is NOT supported.

Parameters:

name The name of the rotation, case insensitive.
Required: Yes.
case The case within a rotation, must be an integer between 1 and “max_cases”.
Required: Yes, defaults to 1.
max_cases Determines the maximum number of rotation cases. When the maximum is reached, the visitor is assigned case “1”.
Required: Yes.

Example:

[i4w_rotation name='MyRotation' case='1' max_cases='3']
  Display this content to visitors on their first visit to the page.
  Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_rotation]

[i4w_rotation name='MyRotation' case='2' max_cases='3']
  Display this content to visitors on their second visit to the page.
  Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_rotation]

[i4w_rotation name='MyRotation' case='3' max_cases='3']
  Display this content to visitors on their third visit to the page.
  Content can be text, HTML, other shortcodes, order forms and web forms.
[/i4w_rotation]

API:

There is no API function equivalent for this shortcode.