WordPress.org

Ready to get started?Download WordPress

Forums

People Lists
Paragraphs ignored in "general information" (5 posts)

  1. thomas_n
    Member
    Posted 3 years ago #

    When I enter information in the "general information" box, paragraph endings and line breaks are not stored.

    Is this a bug?

    http://wordpress.org/extend/plugins/people-lists/

  2. mlavanish
    Member
    Posted 3 years ago #

    The kses filter pulls these tags out. The only way I found to reliably keep them in was to go into kses.php and uncomment br and p from the list of allowedtags.

    WP of course does not endorse hacking your files, so edit at your own risk.

    This could probably be done better and more appropriately with the use of a plugin, using the CUSTOM_TAGS option, which from what I can tell is specifically for circumventing specific filters. However, I couldn't find a plugin and programming one is a bit beyond me at this stage.

  3. thomasdk81
    Member
    Posted 3 years ago #

    Well I can live with the filter, but shouldn't line breaks [Enter] work?
    [Enter] line break are visible in the editor but the %bio% template tag strips them.

  4. thomasdk81
    Member
    Posted 3 years ago #

    The line breaks are present in the source code.
    Does anybody know how to replace them with
    ?

  5. thomasdk81
    Member
    Posted 3 years ago #

    A friend reminded me of the nl2br() function.

    I added it to people-lists.php:
    Line 706: $replacements[2] = nl2br($user_data->description);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic