Wednesday, November 30, 2011

Automatically remove p tags on images in wordpress

Automatically remove p tags on images in wordpress
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');

I just got my #domain @BigRock. Get upto 25% off with my personalized coupon link Get upto 25% off