WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using a modified 2011 theme, I got the single post to look fine but my single attachment is not working.

I'm told this will default to the page.php if I do not have an attachment template. So, it doesn't look like its pulling the head from page.php either.

Thanks in advance for any help, i'd provide some code but i'm not sure where to start. derp.

share|improve this question
It uses single.php if attachment.php is missing. – amit Aug 14 '12 at 7:33

A good place to start is with the template hierarchy flow chart. http://codex.wordpress.org/images/1/18/Template_Hierarchy.png I'm always consulting this page.

When you say modified twenty eleven, what do you mean? The image.php file is what handles image attachment pages in twenty eleven. I'm not familiar entirely with how it works, but it may be also making a call to the content-image.php file where the_content() function is being invoked, maybe. Not sure.

Hopefully this'll at least get you pointed in the right direction though.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.