Skip to content

i4w_forloop

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.

ParameterDescriptionDefaultRequired
timesThis parameter defines the number of iterations to be performed.NoneYes
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.