Tag Pair Helper Parameters
All tag pairs loops can have a couple of parameters added to them to control their output.
play Watch our screencast on
Variable Tag Pairs
sort_by
The name of the field within a named list to sort by.
sort_dir
The direction in which the tag pair’s values should be sorted, asc
by default.
first
When set, will only show the first item in the tag pair loop (after sorting).
last
When set, will only show the last item in the tag pair loop (after sorting).
offset
The number of items to skip (after sorting) before starting iteration over the tag pair loop.
index
When set, will only return the item at the given index from the tag pair loop (after sorting).
limit
Limits the maximum number of iterations that the tag pair loop will perform (after sorting).