Hey Lara,
Can you please provide with some more details on your last post? I’m trying to use your code but I get stuck some things. For example: what is ‘gear_to_deal’? Is that a custom field or a custom post type or maybe the custom field group name?
This is what I’m trying to do:
{% for rental in post.get_field('address__for_rent') %}
<div class="address">
{% set details = TimberPost(rental.for_rent) %}
{% if details %}
<h3 class="highlight">For rent</h3>
{% for detail in details %}
<span>{{detail.address_street}}</span>
{% endfor %}
{% endif %}
</div>
{% endfor %}
– address__for_rent = the name of the relational field
– TimberPost(rental.for_rent) = custom post type ‘for_rent’
– address_street = a custom field from the linked for_rent post
Do I need some php inside my template file perhaps?
Please enlighten me! Much appreciated ??