Solved

How to remove Wordpress auto generated P tags?

Posted on 2013-01-17
4
883 Views
Last Modified: 2013-01-17
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
Comment
Question by:brettr
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 350 total points
ID: 38788672
I think this is what you're looking for:
http://codex.wordpress.org/Function_Reference/wpautop
0
 

Author Comment

by:brettr
ID: 38788690
I don't think that can be used in the "Text" editor of Wordpress right?
0
 
LVL 1

Assisted Solution

by:Adam
Adam earned 150 total points
ID: 38789408
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
 

Author Comment

by:brettr
ID: 38790499
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

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question