ceescoenen

Route to arrangement

Mar 10th, 2022 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. {% set relationship = attribute( relationships, 'route-to-arrangement' ) %}
  2.  
  3. /* The question is how to filter on a specific term inside Posttype Route
  4. CPT arrangement
  5. CPT route (terms: utrecht, gelderland)
  6. */
  7.  
  8. {% for post in relationship.from %}
  9.  
  10. <div class="grid--m-2 grid--3-2 grid--m-1 stretch gap--m cc--routecard__container margin-bottom--m">
  11. <div class="cc--routecard__inner">
  12. <h2 class="cc--routecard__title">
  13. <a href="{{ mb.get_the_permalink( post.ID ) }}">{{ post.title }}</a>
  14. </h2>
  15. <div class="cc--routecard__excerpt">
  16. {{ post.excerpt }}
  17. </div>
  18. </div>
  19. <div>
  20. <div class="cc--routecard__map">
  21. {{ mb.route_function(post.ID) }}
  22. </div>
  23.  
  24. </div>
  25. </div>
  26.  
  27. {% endfor %}
  28.  
Add Comment
Please, Sign In to add comment