[wp-trac] [WordPress Trac] #33017: Unattached images displayed with page.php instead of index.php
WordPress Trac
noreply at wordpress.org
Thu Jul 16 15:04:21 UTC 2015
#33017: Unattached images displayed with page.php instead of index.php
--------------------------+-----------------------------
Reporter: creon | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: 4.2.2
Severity: normal | Keywords:
Focuses: template |
--------------------------+-----------------------------
I am developing a theme and currently do not have an `attachment.php` or a
`single.php`. When I insert an unattached image into a post and select
"Link to: Attachment Page", I expect the image to be displayed with
`index.php` according to the template hierarchy
[https://developer.wordpress.org/files/2014/10/wp-template-hierarchy.jpg].
However, the attachment page is displayed with the `page.php` tempalte
instead, and the URL is under my static front page.
The issue does not show up with images attached to the post.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33017>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list