i have put this function in the functions.php theme file:
function filter_ptags_on_images($content){
return preg_replace('/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU', '\1\2\3', $content);
}
add_filter('the_content', 'filter_ptags_on_images');
After that the whole pages content are gone, i have deleted that function from functions.php but the content still not showing, any ideas why?