Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set relationship = attribute( relationships, 'route-to-arrangement' ) %}
- /* The question is how to filter on a specific term inside Posttype Route
- CPT arrangement
- CPT route (terms: utrecht, gelderland)
- */
- {% for post in relationship.from %}
- <div class="grid--m-2 grid--3-2 grid--m-1 stretch gap--m cc--routecard__container margin-bottom--m">
- <div class="cc--routecard__inner">
- <h2 class="cc--routecard__title">
- <a href="{{ mb.get_the_permalink( post.ID ) }}">{{ post.title }}</a>
- </h2>
- <div class="cc--routecard__excerpt">
- {{ post.excerpt }}
- </div>
- </div>
- <div>
- <div class="cc--routecard__map">
- {{ mb.route_function(post.ID) }}
- </div>
- </div>
- </div>
- {% endfor %}
Add Comment
Please, Sign In to add comment