Title: image.php and attachment.php
Last modified: August 19, 2016

---

# image.php and attachment.php

 *  [longwing1](https://wordpress.org/support/users/longwing1/)
 * (@longwing1)
 * [18 years ago](https://wordpress.org/support/topic/imagephp-and-attachmentphp/)
 * If I have an image.php file in my theme folder, what uses the attachment.php 
   file?
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years ago](https://wordpress.org/support/topic/imagephp-and-attachmentphp/#post-777623)
 * Good question… It seems that in the latest release (2.5.1) the attachment.php
   has been replaced by the image.php in the default theme.
    So, my guess is you
   don’t need both – only one of them. Sorry that I cannot be more helpful; I am
   also looking for any information about this change but couldn’t find any.
 *  Thread Starter [longwing1](https://wordpress.org/support/users/longwing1/)
 * (@longwing1)
 * [18 years ago](https://wordpress.org/support/topic/imagephp-and-attachmentphp/#post-777636)
 * moshu, thanks for jumping in. maybe it’s there for backward compatabillity. I
   guess I can delete it and see if anything really horrible happens.
 * Thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘image.php and attachment.php’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [longwing1](https://wordpress.org/support/users/longwing1/)
 * Last activity: [18 years ago](https://wordpress.org/support/topic/imagephp-and-attachmentphp/#post-777636)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
