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
2

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);
}

Leave a Reply

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