• Jessica

    (@thejessicapage)


    Hello,
    I am not looking for a plugin, I am looking for any ideas on why my methods so far are not working and if there may be a way to fix this.

    ISSUE: WordPress is adding P tags when I am in the TEXT editor. I would like to stop it from doing that.

    I have tried the following:
    In my functions.php (in addition to the 30 I also tried 10)
    `remove_filter(‘the_content’, ‘wpautop’, 30);
    remove_filter(‘the_excerpt’, ‘wpautop’, 30);
    remove_filter( ‘comment_text’, ‘wpautop’, 30 );`

    and

    `remove_filter(‘the_content’, ‘wpautop’);
    remove_filter(‘the_excerpt’, ‘wpautop’);
    remove_filter( ‘comment_text’, ‘wpautop’);`

    I have also made sure that the Tiny MCE plugin had the option to STOP WP from adding P tags selected.

    Any ideas or thoughts on how to get this working? There is no changes at all.

  • The topic ‘How To Stop WP From Adding P Tags’ is closed to new replies.