Skip to main content

Country Area

Country area loop lists.
{loop type="country_area" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
areaA single or a list of area ids.area="10,9", area: "500"
countryA single or a list of country ids.country="2", country="1,4,7"
idA single or a list of country ids.id="2", id="1,4,7"
orderA list of values
Expected values
idorder="alpha_reverse"
statesA boolean value to return countries that have states or not (possible values : yes, no or *)states="no"

Plus the global arguments

Outputs

VariableValue
$AREA_IDThe ID of the area corresponding to the country.
$COUNTRY_IDThe ID of the country.
$IDThe ID of the country area.
$STATE_IDThe ID of the state corresponding to the country.

Plus the global outputs

Order possible values

Arguments

Ascending valueDescending valueSorted fields
areaarea-reverseID of the area
countrycountry_reverseID of the country
idid_reverseID
statestate_reverseID of the state