WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. selnomeria
    Member
    Posted 8 months ago #

    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..)

  2. selnomeria
    Member
    Posted 8 months ago #

    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/> )

Reply

You must log in to post.

About this Topic