How to control WordPress HTML formatting

July 7th, 2008 at 11:30 pm 1 Comment

Want to get rid of those annoying <p> and <br> tags that Wordpress automaticallly adds to your posts?

Just the other day, I uploaded some panoramas to my site. I made each panorama a page in Wordpress with a custom theme. The problem was that Wordpress was adding all these extra <p> and <br> tags to my HTML, which was throwing off my CSS.

To control Wordpress HTML/text formatting, I found this plugin, called Text Control, which you can download here. This plugins will let you control the formatting and encoding for individual posts and comments. But I needed control over individual pages in Wordpress, so I found this version of Text Control by _ck_, that will do exactly that. You can download it here.

After you have one of these plugins installed you will have total control of how Wordpress formats your posts, pages and comments. You can control these settings globally by going to the Admin, then going to Settings>Text Control. You can also control these settings for each individual posts and pages as seen below.

You can read this article if you want to learn more about how Wordpress formats your content and how wpautop() and wptexturize() works.

1 Response to “How to control WordPress HTML formatting”

  1. Daniel says:

    there is another one – raw-html, also to be downloaded on the wordpress website – it is even siompler, you put two tags and then you write away.

    right now I will probably add these tags by default and use only raw html, cause gives me the biggest flexibility…

    I really don’t need combo boxes and stuff – those tags are just perfect..

Leave a Comment