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

that's the part of my attachment-page that's responsible for showing image description, which I put when adding a new media (I'm using standard wordpress gallery):
< ?php the_excerpt(); ?>
Well, it shows the description, but it ignores all formatting/html. I can't put a link inside it, can't bold font, nor even put a < br />! The formatting stays in description field after saving, it doesn't reset or something. How I can solve that?

share|improve this question
You have to alter the way excerpt is generated. See Improving WordPress' the_excerpt() template tag – Max Yudin Dec 14 '12 at 10:55

Your Answer


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

Browse other questions tagged or ask your own question.