Skip to main content

Associated content

Associated content loop lists associated contents of a product or a category. It behaves like a content loop therefore you might use all content loop arguments and outputs.
{loop type="associated_content" name="the-loop-name" [argument="value"], [...]}

Arguments

ArgumentDescriptionDefaultExample
all content loop argumentsexclude_folder="1,2,9"
category **A single category id.category="5"
exclude_categoryA single or a list of category ids. If a content is in multiple categories which are not all excluded it will not be excluded.exclude_category="5"
exclude_productA single or a list of product ids. If a content is in multiple products which are not all excluded it will not be excluded.exclude_product="5"
orderA list of values
Expected values
associated_contentorder="associated_content"
product **A single product id.product="2"

Outputs

VariableValue
$CONTENT_IDthe associated content id
all content loop outputs, except ID, which is the ID of the relation.

Order possible values

Arguments

Ascending valueDescending valueSorted fields
associated_contentassociated_content_reverseassociated content
all content loop orders