I’m trying to pull in the property listings tagged with “Featured” but I’m getting all of the listings.
{% set p_collection = page.evaluate([{'@page.children':'/properties', '@taxonomy.tag':'Featured'}]) %}
{% set ordered_collection = p_collection.order('date','desc') %}
{% for p in ordered_collection %}
{{dump(p.taxonomy)}}
{% endfor %}
Output:
array:2 [
"category" => array:1 [
0 => "Property"
]
"tag" => array:1 [
0 => "Featured"
]
]
debug
array:1 [
"tag" => array:1 [
0 => "Featured"
]
]
debug
array:1 [
"category" => array:1 [
0 => "Property"
]
]
---