This code works and get all the locatie's that are related to the current route.
{% set relationship = attribute( relationships, 'route-to-locatie' ) %}
{% for post in relationship.to %}
<p>
{{ post.title }}
</p>
{% endfor %}
The CPT locaties has terms like horeca or highlight. I will show only the related post that has also the term horeca. I Oxygen builder I have made an Advanced Query like https://ibb.co/JkpPn0B
'tax_query' => array(
array(
'taxonomy' => 'soort_locatie',
'terms' => 'horeca',
'field' => 'slug'
)
)
How do I get this in MB View?
And when I have to use {% set posts = mb.get_posts( args ) %}
how do I construct the args based on the info above? (post_type: locaties etc)