Title: Question about attachment_id
Last modified: August 19, 2016

---

# Question about attachment_id

 *  [mdumka](https://wordpress.org/support/users/mdumka/)
 * (@mdumka)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/question-about-attachment_id/)
 * Hello,
 * I am using the standard [gallery] short code, when I click on one of those images
   in the gallery, I get taken to:
 * `?attachment_id=146`
 * Where can I edit this template?
 * Thanks for the help
 * Mike

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/question-about-attachment_id/#post-1049001)
 * Look for attachment.php or image.php in your theme. If you don’t have either 
   of these, then your images will be using the single.php template. Failing that,
   index.php.
 *  Thread Starter [mdumka](https://wordpress.org/support/users/mdumka/)
 * (@mdumka)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/question-about-attachment_id/#post-1049255)
 * Thanks esmi … but no luck. I played with attachment.php, image.php, single.php
   and index.php and nothing.
 * Here is the page, maybe that will shed some light
 * [http://stonewalljets.ca/?attachment_id=146](http://stonewalljets.ca/?attachment_id=146)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/question-about-attachment_id/#post-1049261)
 * If there’s an image.php file in the theme, it should be used. Followed by attachment.
   php etc. What do you have in image.php?

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

The topic ‘Question about attachment_id’ is closed to new replies.

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/question-about-attachment_id/#post-1049261)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
