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.
[ELSE_rotation] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| name | The name of the rotation, case insensitive. | None | Yes |
| case | The case within a rotation, must be an integer between 1 and "max_cases". | 1 | Yes |
| max_cases | Determines the maximum number of rotation cases. When the maximum is reached, the visitor is assigned case "1". | None | Yes |
Example
Shortcode
[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]
Shortcode
[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]
Shortcode
[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]