Homepage » Software » Wiping out WP break tags

Wiping out WP break tags

By Jonathan + June 29th, 2005

For me, the strength of WordPress is the ability to add whatever HTML code I desire to my posts. However, the fact that WP automatically adds BR tags to your posts was driving me nuts. Luckily, that’s easy to change. If you’re in WP 1.5 like me, the file you need to change is the aptly-named /wp-includes/functions-formatting.php.

Change:
Line 56: function wpautop($pee, $br = 1) {
to
Line 56: function wpautop($pee, $br = 0) {

Welcome to the world of controlling your own line breaks and don’t forget the trailing slashes ;-)

O comments at "Wiping out WP break tags"

Be the first commenter!

Comment Now!

Name* Email* Blog / Website

Latest Posts

Fixing Connect360 on the New Xbox Experience November 19th, 2008

Fixing Connect360 on the New Xbox Experience

When I fired up the New Xbox Experience tonight, the first thing I checked was whether Connect360 worked. I think I would probably use my Xbox for a[...] Read the rest »