Post Pic

How to disable image caption in WordPress post editor

For each uploaded image, WordPress lets you enter a caption to describe the file. This is very cool, but sometimes you don’t need captions at all. Here is how you can get rid of it.

Simply paste the following lines of code in your functions.php file, and you're done!

function caption_off() {
    return true;
}

add_filter( 'disable_captions', 'caption_off' );

Thanks to Wp Tricks for this nice hack!

7 Responses

Jan 07 2010 03:30

interesting. I suppose this would come in handy if you changed your site design from previously having captions to not wanting them anymore.

Jan 07 2010 19:49

Thanks for this recipe, I will check it

Jan 07 2010 22:30

Nice, simple tip. I’ve always hated captions (never use them) so it will be nice to get rid of them.

Mar 24 2010 06:51

Hey you might want to include the fact that for good SEO, you might want to keep the captions.

Jul 05 2010 09:00

Hi, do someone know how to keep captions in excerpts? I can’t find this info nowhere – is it just possible?

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required