?
Solved

How to remove Wordpress auto generated P tags?

Posted on 2013-01-17
4
Medium Priority
?
888 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 1400 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 600 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

765 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