How to Add a Caption to WordPress Images

Not sure how to put a caption on an image in WordPress? Not to worry – it’s about as simple as it gets.

You’ve probably overlooked the solution countless times. It’s built right into WordPress. No plugin needed.

The simplest way is probably to do it when you upload your photo in your media uploader. In the image editing screen that pops up when the image is uploaded, you will notice a text box for your caption about midway down the page. Just pop your caption in there, and you’re all set.

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

And here’s the result.

Although this can vary with your theme, you’ll typcially notice that WordPress automatically puts you image in a nice frame with space at the bottom for the caption. And if you put a long caption in the box, the system will automatically expand to contain it.

You can also access captions for your images via the Media Library.

If you’d like to play around with the style of your captions, then search your theme’s stylesheet for .wp-caption.  (Appearance > Editor > Stylesheet – style.css) You’re likely to come across a number of different instances.

Featured Plugin - WordPress Appointments Plugin

Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more

Photo: Beautiful Sceneries in Photos on Green Field Background from BigStock


Comments (5)

  1. Craig – That can be controlled in your stylesheet. The borders show up in the default WordPress themes (TwentyTen and TwentyEleven), so you might look at what they’re doing there.