I'm stuck.
Post Type: Team
Custom Field: team_program_affiliations (post field -- select advanced)
I started with this view:
{% for item in post.team_program_affiliations %}
<a class="fl-button program-button" href="{{ item.url }}">{{ item.title }}</a>
{% endfor %}
It works. But it shows the post titles (which are item.title). But they are in DESC order. I have to get them to appear in ASC order. I have tried following the documentation here (https://docs.metabox.io/extensions/mb-views/#custom-query). However, I can't get it to work.
This is the last thing I have tried in the view:
{% set args = { post_type: 'team', posts_per_page: -1, orderby: 'item.title', order: 'ASC', meta_key: 'team_program_affiliations' } %}
{% set post = mb.get_posts( team ) %}
{% for item in post.team_program_affiliations %}
<a class="fl-button program-button" href="{{ item.url }}">{{ item.title }}</a>
{% endfor %}
Could you help me understand how to apply an order to the item.title? Thanks so much.