WordPress.org

Ready to get started?Download WordPress

Forums

should be simple: get rid of <p> tags in post body (15 posts)

  1. Matt Mullenweg
    Troublemaker
    Posted 10 years ago #

    remove_filter('the_content', 'autop')

  2. doctorparadox
    Member
    Posted 10 years ago #

    hey, thanks for the tip. remove_filter() threw an "undefined function" error, though (??) but i ended up figuring out that i could solve the problem by commenting out the following line in vars.php: add_filter('the_content', 'wpautop');
    did the trick quite nicely...

  3. arghnoname
    Member
    Posted 10 years ago #

    You could also do a p.storycontent {display: inline;} in your css.

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    remove_filter('the_content', 'wpautop')
    ...worked for me. Note the difference is wpautop instead of autop. I'm using a nightly build from mid-April 2004.

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    Where should the remove filter function be put?
    Into index.php as
    <?php remove_filter('the_content', 'wpautop') ?>
    I am a little new to all this, sorry.

  6. outkast
    Member
    Posted 9 years ago #

    i need some help on this too, please?

  7. flyingrabbit
    Member
    Posted 9 years ago #

    Where might one find the place where WP is inserting the tags to begin with, so I can just take it out. remove_filter/apply_filter is not working.

  8. OtherMichael
    Member
    Posted 9 years ago #

    Wherefore, wherefore, wherefore doth we place the code?

    Oh, that there were a button that sayeth but "Auto-formatting is on/Auto-formatting is off."

  9. NuclearMoose
    Member
    Posted 9 years ago #

    http://mosquito.wordpress.org

    Visit there and log an enhancement suggestion.

  10. Matt Mullenweg
    Troublemaker
    Posted 9 years ago #

    Jan, that bug is already fixed in CVS.

  11. NuclearMoose
    Member
    Posted 9 years ago #

    Flagged for Codex

  12. OtherMichael
    Member
    Posted 9 years ago #

    hi, still waiting for an answer... WHERE does the "remove_filter" code get placed?

  13. Mark (podz)
    Support Maven
    Posted 9 years ago #

    MtDewVirus has made this into a plugin I believe.

  14. XeroCool
    Member
    Posted 9 years ago #

    Link?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.