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

  1. thomas_n
    Posted 5 years ago #

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

    Is this a bug?


  2. mlavanish
    Posted 5 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. Thomas Blomberg Hansen
    Posted 5 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. Thomas Blomberg Hansen
    Posted 5 years ago #

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

  5. Thomas Blomberg Hansen
    Posted 5 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

  • People Lists
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic