One template for post attachments and a different one for page attachments?
-
I have recently created an attachment.php template for my site which is working fine.
However I would like to use one template for images attached to a page, and a different template for images attached to a post.
For example here is an image attached to a page: https://www.cathedralcityguide.co.uk/the-cities/bristol/bristol-harbour/
and here is an image attached to a post: https://www.cathedralcityguide.co.uk/2013/01/happy-new-year-from-cathedral-city-guide/fireworks-small/Looking at the template hierarchy I can’t work out to do this. Is it possible? Any help much appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘One template for post attachments and a different one for page attachments?’ is closed to new replies.