assignAttribute NameTypeRequiredDefaultDescriptionvarstringYesn/aThe name of the variable being assignedvaluestringYesn/aThe value being assigned
{assign} is used for assigning template variables during the execution
of the template.
assign
The above example will output:
See also assign()
and
get_template_vars().