I have a loop that display all posts from CPT Begrippenlijst. I will display posts inside the loop from the relationship. It gives me no results. Doing the same on a single page works.
Isn't this possible or do I make an mistake?
{% set args = { post_type: 'begrippenlijst', posts_per_page: -1, order : 'ASC',orderby : 'title' } %}
{% set posts = mb.get_posts( args ) %}
{% for post in posts %}
{% set relationship = attribute( relationships, 'term-to-module' ) %}
{% for post in relationship.to %}
title
{% endfor %}
{{ post.title }}
{% endfor %}