[repeat]
shortcode allows to produce repetetive content easily.
Repeat shortcode arguments
data | value1, value2, value3 |
separator | Custom separator symbol (default: ","). |
divider | Custom divider symbol (default: "|"). |
variable | Custom variable enclosing symbols (default: "%"). |
Repeat
Item
Another item
Third item
Item
Another item
Third item
[list bulleted]
[item]Item[/item]
[item]Another item[/item]
[item]Third item[/item]
[/list]
[list bulleted]
[repeat data="Item, Another item, Third item"]
[item]%0%[/item]
[/repeat]
[/list]
Notes
Separate data with commas.Use
%n%
as variable name, where n = index.Multiple variables
Header
Item
Another header
Another item
Third header
Third item
[list bulleted]
[repeat data="
Header|Item,
Another header|Another item,
Third header|Third item
"]
[item header="%0%"]%1%[/item]
[/repeat]
[/list]
Table
Name | Status | Notes |
---|---|---|
John | Approved | None |
Jamie | Approved | Requires call |
Jill | Denied | None |
John | Approved | None |
Jamie | Approved | Requires call |
Jill | Denied | None |
John | Approved | None |
Jamie | Approved | Requires call |
Jill | Denied | None |
<table class="ui celled table">
<thead>
<tr>
<th>Name</th>
<th>Status</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
[repeat data="
John|Approved|None,
Jamie|Approved|Requires call,
Jill|Denied|None,
John|Approved|None,
Jamie|Approved|Requires call,
Jill|Denied|None,
John|Approved|None,
Jamie|Approved|Requires call,
Jill|Denied|None,
"]
<tr>
<td>%0%</td>
<td>%1%</td>
<td>%2%</td>
</tr>
[/repeat]
</tbody>
</table>