Forums

Editting wpautop Function (2 posts)

  1. kingspice
    Member
    Posted 3 years ago #

    For the wpautop function included within "functions-formatting.php" I'd like to change the function so instead of inserting when there is a double line break, instead I'd like to insert a double <br> (p's messing up my site layout).

    So for example:
    Hello my name is

    gareth

    would be outputted as
    Hello my name is<br><br>gareth

    instead of Hello my name is
    gareth

    I have looked at the function but can't work out what should be change/commented out. Any help would be appreciated.

    Thanks

  2. Chris_K
    Administrator
    Posted 3 years ago #

    Any of these threads helpful? Seems this has been done once or twice already. http://wordpress.org/search/wpautop?forums=1

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags