Solved

How to remove Wordpress auto generated P tags?

Posted on 2013-01-17
4
886 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like theā€¦
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

726 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