How to remove image caption in WordPress 2.6

image captionNew version of wordpress 2.6 includes Image captioning feature that automatically adds caption under your images like in BBC and CNN news site. It is pretty good if you like. But what if you don’t want to put little caption under your image? Here is a very simple trick.

  1. Switch to HTML mode
  2. Remove the code something like this (before img HTML tag)
    [   caption id="attachment_605" ...]
    <img src=….. />
    [   /caption]

remove caption html

5 comments

  1. Blackhatseo says:

    Added. Nice work on this one. Btw, my blog is dofollow, stop by and grab a link. Walter

  2. Ash Haque says:

    To tedious to do after every single image, better way would be to edit your functions.php file and add:

    <code>define(‘CAPTIONS_OFF’, true);</code>

  3. Michael Sync says:

    Actually, if you don’t specify the caption while you are adding the image, it won’t show the caption.. no need to do those manual things..

  4. Paul says:

    Hi Michael. If you don’t specify the caption, WordPress won’t add an ALT tag and then your code will be rendered invalid. Seems kinda dumb for WordPress to do that.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>