[resolved] wp_editor api not writing p tags in custom user profile field (2 posts)

  1. davidnorman
    Posted 3 years ago #

    I am building a custom biography field in the wordpress user profile page using WP's wp_editor api (using WP version 3.3.1).

    When I add any content though, the WSYIWYG editor is not writing the paragraph tags to the database.

    I am able to use the visual editor to add all other mark-up (bold, italics, etc) & I can manually add paragraph tags and save the full marked-up text to the database.

    Has anyone else run into this issue? Code I'm using to build the custom field in the functions.php file below.


  2. davidnorman
    Posted 3 years ago #

    Solved the issue. Was not adding the_content fitler.

    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);


Topic Closed

This topic has been closed to new replies.

About this Topic