How To Remove The Surrounding P Tags From the_content() In WordPress

A nice little hack for you

Wordpress logo

How To Remove The Surrounding P Tags From the_content() In WordPress

This came up today and I found a slick solution online so i thought I would make a note of it.
echo $post->post_content;
Will echo the post content without surrounding P tags.
Now you know…
😛

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *