the_content
is always surrounded by paragraphs, it doesn’t matter if I’m in HTML view and there’s nothing there. Does WordPress have a function to remove them? IS there any way?
Leave a Reply
You must be logged in to post a comment.
the_content
is always surrounded by paragraphs, it doesn’t matter if I’m in HTML view and there’s nothing there. Does WordPress have a function to remove them? IS there any way?
You must be logged in to post a comment.
Removing the filter that adds the P is the best option.
You can implement your own function in your theme’s function.php file and use it instead of “the_content”