Hello,
newbie question:
I have a Meta Box View, that shows all posts, that have a relationship with the current post. This works so far. Now I would like to order the posts by date (post date). I don't understand how they are ordered by default.
My view looks like this:
{% set args = { post_type: 'post', nopaging: true, order: 'DESC', orderby: 'date', relationship: { id: 'superrelationship', from: post.ID } } %}
{% set posts = mb.get_posts( args ) %}
{% for post in relationships.superrelationship.from %}
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
<p>Testname Feld 123: {{ post.name_test }}</p>
<p>{{ post.date | date( 'Y-m-d H:i' ) }}</p>
{% endfor %}
If I change 'ASC' or 'DESC' nothing changes. Do I miss something?
thanks a lot!