Home › Forums › Back End › How to achieve two different excerpt layouts on one WordPress site? › Re: How to achieve two different excerpt layouts on one WordPress site?
June 3, 2013 at 3:05 pm
#137487
Alen
Participant
> Problem with this… WordpPress wraps all images with P tags!!!!
add_filter(‘the_content’, ‘filter_ptags_on_images’);
function filter_ptags_on_images($content){
return preg_replace(‘/
(s*)()(s*)
/iU’, ‘2’, $content);
}
That should do it.
> and in this particular case, it doesn’t
This is most likely because you are using excerpts plugin.