Template problem
-
I have set up two templates:
Staff Member – shows a custom post
Staff Member Archive – lists the posts in the custom postBut I cannot get the archive template to show any image fields or HTML.
The Staff Member template:
<div id="staff-page"> <div class="company-details"> {@location.cover_image._img}<br> {@location.company_name}<br> </div> <div id="staff-details"> {@photo._img.thumbnail}<br> {@first_name} {@last_name} <br> {@job_title}<br> </div> {@location.phone} </div>
This works fine: https://demo.brandsavvy.co.uk/staff-member/john-smith/
The archive template:
<ul class="staff-list"> <li><img class="staff-image" src="{@photo._src.thumbnail}" /> <div>{@first_name} {@last_name}</div> [if location]<div><strong>Location:</strong> {@location}</div>[/if] </li> </ul>
This shows the text fields (first_name, last_name and location) but not the image nor is the being rendered: https://demo.brandsavvy.co.uk/staff-member/
What am I doing wrong?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Template problem’ is closed to new replies.