WordPress.org

Ready to get started?Download WordPress

Forums

fixing automatic insertion of & tags into post (2 posts)

  1. solid28
    Member
    Posted 1 year ago #

    Hey Everyone,

    I have a 100% customized theme that stripped basically everything out.

    I am having problem with WP inserting random <p> &
    tags.

    To fix this, I read you should:

    In includes/functions change $br = 1 to $br = 0 in the autop function.

    How do I also remove the random <p> tags inserted into my post?

    thank you,
    Evan

  2. vjpo
    Member
    Posted 1 year ago #

    Put into theme's functions.php
    remove_filter( 'the_content', 'wpautop' );
    http://codex.wordpress.org/Function_Reference/wpautop
    or use some plugin, e.g. Disabler

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.