Title: Attachment.php not recognized
Last modified: August 18, 2016

---

# Attachment.php not recognized

 *  [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years ago](https://wordpress.org/support/topic/attachmentphp-not-recognized/)
 * I’m trying to get the attachment template working, but for some reason WordPress
   is using my single.php instead of the attachment.php I have in my folder. Has
   this happened to anyone else or did I miss a setting?

Viewing 1 replies (of 1 total)

 *  Thread Starter [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * (@sunscream)
 * [19 years ago](https://wordpress.org/support/topic/attachmentphp-not-recognized/#post-565826)
 * Nevermind. After many hours of frustration, I figured out the paged comments 
   plugin was causing the error. Line 67 of paged-comments.php should be changed
   to:
 *     ```
       if (is_attachment()) {
           $template = get_attachment_template();
       } else if (is_single()) {
           $template = get_single_template();
       } else if (is_page()) {
           $template = get_page_template();
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Attachment.php not recognized’ is closed to new replies.

## Tags

 * [attachment](https://wordpress.org/support/topic-tag/attachment/)

 * 1 reply
 * 1 participant
 * Last reply from: [callmeforsox](https://wordpress.org/support/users/sunscream/)
 * Last activity: [19 years ago](https://wordpress.org/support/topic/attachmentphp-not-recognized/#post-565826)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
