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

  1. selnomeria
    Posted 2 years ago #

    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
    Posted 2 years ago #


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

Topic Closed

This topic has been closed to new replies.

About this Topic