Solved

How to remove Wordpress auto generated P tags?

Posted on 2013-01-17
4
882 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
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…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. 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 : Go t…

785 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