[wp-hackers] How to remove captions on the homepage

Andrew Ozz admin at laptoptips.ca
Wed Jan 14 15:05:54 GMT 2009

Lynne Pope wrote:
> If you find the answer Alex, please post it. I am manually adding captions
> and not using the WP captions for this very reason. I decided not to hide
> them on the frontpage thru CSS because of concerns that search engines may
> treat this as hidden text and penalise the sites.

Something like this in header.php should work:

if ( is_home() )
	add_filter('img_caption_shortcode', create_function('$a, $b, $c', 
'return $c;'), 10, 3);

More information about the wp-hackers mailing list