Not sure exactly what you mean. If you truly are using a Page, then look in your theme’s page.php.
Isn’t the attachment.php template file used for this (if it exists)?
See: http://codex.wordpress.org/Using_Image_and_File_Attachments
Yes, you should make an attachment.php template and put your adsense code there.
When you upload a file, you’re actually making a sort of pretend post. This attachment post lives in the posts table, just like real posts, drafts, private posts, and Pages. It just has a status of “attachment”.
The content of this attachment post is actually information about the file. Specifically, the description you gave to the file in the upload form is there, along with an IMG tag for the image. There’s also a bunch of stuff in the post’s custom fields, such as the size of the post, its location, the thumbnail’s location, etc…
So when you click through to an attachment on a page, you’re actually seeing that attachment post.
If all you want to do is to change the description displayed under the image on its page, just hit Browse All, click the image, click the Edit link, and change the description there. Then Save.
If you want to add anything more complex and want to do it universally across all attachment pages, copy the theme’s index.php or single.php file into attachment.php, then edit that file to add your Adsense code where you want it.
i’ll give that a shot thanks!
if you look at my site http://www.celebridiot.com/gossip – in that Alaina Alexander section — only 1 post in there with 5 pictures – 4 thumbnails
when you click on the thumbnail it go to a new page but i need to edit that — i will try out the attachment.php and see if that works
ok i created an attachment.php file and when i click on the thumbnail it bring up that page nut not the image. Is there a command I need to use to call the images?
The attachment.php page needs to be a complete page, with a Loop in it and everything. Like index.php is. Or single.php. Start by copying one of those and then modifying it.
ok thanks! I appreciate the assistance