i4w_forloop
Usage
This shortcode is used to perform a set of repetitive actions a fixed number of times, similar to a programming FOR…TO…NEXT loop.
[ELSE_forloop] conditional branching is NOT supported.
Shortcode nesting is NOT supported.
Parameters
| Parameter | Description | Default | Required |
|---|---|---|---|
| times | This parameter defines the number of iterations to be performed. | None | Yes |
Example
Shortcode
[i4w_forloop times='12']
Going thru the loop %%iteration%% times.
[/i4w_forloop]
All actions between the shortcode tags would be performed 12 times. The internal variable placeholder, %%iteration%% will be incremented at each iteration.
Notes
warning
Please consider the effect a large number of iterations could have on the performance of your site.