Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7830 closed defect (bug) (invalid)

Attachment.php and Image.php aren't working in several themes

Reported by: langsuyar Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.6.1
Component: Template Keywords: attachment.php image.php template
Focuses: Cc:


I made a copy of index.php, renamed it to attachment.php. The template is used correctly when clicking on a gallery entry - but it doesn't display the image in the attachment! Weird.

The code is identical to index.php (which works), and both do a standard the_content() call. When comparing the HTML that index.php and the (theoretically identical) attachment.php generate, the latter one doesn't contain any references to my image.

Broken in Revolution Business Pro Theme, but I've gotten it to break in other themes as well (Vanilla Mist, for example). Kubrik works, on the other hand!

Please see http://wordpress.org/support/topic/200462 for full thread on the problem.

Change History (1)

#1 @mrmist
7 years ago

  • Milestone 2.8 deleted
  • Resolution set to invalid
  • Severity changed from major to normal
  • Status changed from new to closed

Closing this as invalid. A solution to the issue was posted in the linked forum thread. Re-open with steps to reproduce if this remains a current 2.7 issue.

Note: See TracTickets for help on using tickets.