Attachment URL for an image is loading direct image file
Question
I’m working on a site that is using a theme with an attachment.php file in the theme. However, when going to an image’s attachment page (i.e. https://domain/john-doe/) it loads the direct image (i.e. https://domain/files/2020/03/john-doe.png).
What would cause this to occur? I thought WordPress would load the attachment URL and present the item as coded in attachment.php, not the media file itself.
0
attachments, templates
3 years
2020-03-24T16:51:23-05:00
2020-03-24T16:51:23-05:00 0 Answers
120 views
0
Leave an answer