Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorOptional
    • CommentTimeAug 7th 2007
     

    Hey Simon,

    Do you know off the top of your head if there is a way to stop wordpress trying to reformat posts?

    It keeps adding damn P tags around everything.. sometimes in the wrong places too.

    I'll go ask at wordpress forum if you dont know.. cant see any setting for it in admin.

    Brad

    • CommentAuthorSimon
    • CommentTimeAug 7th 2007 edited
     
    Project Admin

    I don't think there is a way to disable the use of <p> tags by default within Wordpress, however you can use a plugin to remove them:

    http://urbangiraffe.com/plugins/disable-wpautop

    The plugin is literally 2 lines, to remove the tags from the content (you may not want to use the 2nd line):

    remove_filter ('the_content', 'wpautop');
    remove_filter ('comment_text', 'wpautop');

    • CommentAuthorOptional
    • CommentTimeAug 8th 2007 edited
     

    thanks... that was the ticket... and good tip about editing it to leave formatting enabled for comments.

    Sucks the way it also strips <br> tags too... and only way to fix that one seems to be a script hack.. which I dont want to dick around with as it will just make me not want not to update.

    • CommentAuthorSimon
    • CommentTimeAug 8th 2007
     
    Project Admin

    Yeh, for me it's more trouble than it's worth. I just leave the <p> tags to do as they please.