WordPress.org

Support

Support » Plugins and Hacks » Hacks » text is not put in tags ( in VISUAL editor, after clicking ENTER)

text is not put in tags ( in VISUAL editor, after clicking ENTER)

  • selnomeria
    Member

    @selnomeria

    hi.
    i have installed some plugins,
    but now, when in VISUAL EDITOR (or even HTML),
    after clicking enter, and then switching to HTML, there are no <p> or tagsa,and also, the published content is everything in one line,without <p> tags… (but in VISUAL editor i have many new lines…)
    why it happened?

    (only TInymce-Advanced otpion, to check Stop removing the <p> and <br /> tags when saving and show them in the HTML editor helps.. but i dont want that plugin, as everything worked normally at first..)

Viewing 1 replies (of 1 total)
  • selnomeria
    Member

    @selnomeria

    SOLVED!

    i was outputing
    echo $post->post_content customly on my single post pages, so site couldnt recognize the new lines and <p> tags, as the content is clean. so i used
    echo apply_filters('the_content', $post->post_content) and SOLVED!
    (i think, the_content function finds "\n" and replaces them with<p> or <br/> )

Viewing 1 replies (of 1 total)
  • The topic ‘text is not put in tags ( in VISUAL editor, after clicking ENTER)’ is closed to new replies.