WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. davidnorman
    Member
    Posted 2 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.

    http://wordpress.pastebin.ca/2109391

  2. davidnorman
    Member
    Posted 2 years ago #

    Solved the issue. Was not adding the_content fitler.

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

    http://codex.wordpress.org/Function_Reference/the_content

Topic Closed

This topic has been closed to new replies.

About this Topic