Must be added to function.php or just take the code to parse post_content on the code
add_filter('the_content', 'my_content_image_filter'); // comment jika tidak digunakan di dalam function the_content() karena akan menghilangkan seluruh gambar di post content function my_content_image_filter($content) { $content = preg_replace('#(<[/]?img.*>)#U', '', $content); return $content; }
On post_content line
echo my_content_image_filter(${post_content})