i’ve implemented a jQuery gallery for displaying several images within a post.
the problem is that the_content(); also displays the post image.
any ideas how to filter it?
thanks
2 Answers
you can add a filter to the_content hook to strip the images
something like:
add_filter('the_content', 'strip_images',2);
function strip_images($content){
return preg_replace('/<img[^>]+./','',$content);
}