02
Apr
2011
Removing auto-generated p and br tags from posts in wordpress
WordPress does a great job at parsing what average users insert into the content however web designers and developers like me sometimes need the code to be outputted as is without any modified br and p tags.
Online I’ve seen some weird core hacking going around but actually all you need to do is to remove a filter like so:
remove_filter('the_content', 'wpautop');
No Responses to “Removing auto-generated p and br tags from posts in wordpress”

