[wp-hackers] How to remove captions on the homepage
Alex Hempton-Smith
hempsworth at googlemail.com
Wed Jan 14 14:08:51 GMT 2009
Hi all,
I'm trying to remove the [caption] shortcode stuff from any articles on the
homepage, so that
the <div class="wp-caption"> and all that it contains is not outputted
on the homepage.
I've seen this filter that can be used, and in my functions.php have the
following:
if (is_home()) {
add_filter('disable_captions', create_function('$a','return true;'));
};
But that doesn't make any difference. Is there any way I can achieve this?
Many thanks,
-- Alex
PS. I'm new to PHP but eager to learn, it might explain any bad PHP here :P
More information about the wp-hackers
mailing list