• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 913
  • Last Modified:

How to remove Wordpress auto generated P tags?

I'm using WordPress 3.5 with Thesis 2.0.  It randomly inserts paragraph tags, even when there is no carriage return.  Is there a way to remove these auto generated paragraph tags, at least for specific post?

I'd like to avoid hacking any code since that could break other functionality or even Thesis.
0
brettr
Asked:
brettr
  • 2
2 Solutions
 
Lukasz ChmielewskiCommented:
I think this is what you're looking for:
http://codex.wordpress.org/Function_Reference/wpautop
0
 
brettrAuthor Commented:
I don't think that can be used in the "Text" editor of Wordpress right?
0
 
AdamCommented:
I believe all you have to do is add the following code to your 'functions.php' file:

remove_filter( 'the_content', 'wpautop' );

Open in new window

0
 
brettrAuthor Commented:
I went with a plugin: PS Disable Auto Formatting.  I had to retro fit my posts but I didn't have many.  Works great.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now