Wordpress By default embed images in < p > tags. but if you don’t
want those p tags to show, the following example display a great way to
remove the < p > tags without having to chnage the WordPress core
Just paste the following code in theme functions.php file, and save the
file.the
tags are gone now.
add_filter('the_content', 'remove_ptags_on_images');
Reference site:http://php-mysql-guide.blogspot.com/