Title: Attachment.php does nothing
Last modified: August 18, 2016

---

# Attachment.php does nothing

 *  Resolved [Robinj](https://wordpress.org/support/users/robinj/)
 * (@robinj)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/attachmentphp-does-nothing/)
 * I’ve been adding images to a few posts using the upload function. This gives 
   a working thumbnail, but if you click it (with the link set to ‘page’), it takes
   you to
    [http://…/category/post/image_title/](http://…/category/post/image_title/)(
   on my website, this is something like [http://www.thezahir.co.uk/politics/the-arms-trade-death-for-profit-or-a-fair-deal/soliders-in-the-balkan-conflict/](http://www.thezahir.co.uk/politics/the-arms-trade-death-for-profit-or-a-fair-deal/soliders-in-the-balkan-conflict/))
 * There is an attachment.php file in the theme (a custom theme, but the attachment.
   php is taken straight from the default theme) but when you click an image it 
   just takes you straight back to the index template. This seems…really odd. Any
   advice?
    (Go check it out if you want, [http://www.thezahir.co.uk](http://www.thezahir.co.uk))
 * Oh, this is on wordpress 2.2.3 (but I’ll be upgrading to 2.3 soon, if that will
   make any difference to this issue?)

The topic ‘Attachment.php does nothing’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [Robinj](https://wordpress.org/support/users/robinj/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/attachmentphp-does-nothing/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
