Forums

Removing P tags in content – tried suggestions in forums & elsewhere. (3 posts)

  1. johnnyriss
    Member
    Posted 2 years ago #

    Greetings,

    Another post about wpautop. I'm struggling mightily with the P tags in post content. I've tried this code in my loop, as instructed by other forum posts:

    <?php remove_filter ('the_content','wpautop'); ?>
    <?php the_content(); ?>

    I've also tried the "disable wpautop" plugin.

    Neither works. P tags still show up on my page. Does anyone have any clue why this remove filter thing might not work? Or any other suggestions? I've blown probably 6 freakin' hours on this one stupid issue alone, trying different things with the css to get what the designer wants, while making it so that the client can add content without applying code, since they're not programmers at all.

    Any and all suggestions are greatly appreciated.

    Here's the page – it may be in disarray when you look since I'm still trying to find a solution.

    http://tinyurl.com/ofvamz

    Thanks much!

  2. slashas
    Member
    Posted 2 years ago #

    just put this code in functions.php

    <?php remove_filter ('the_content','wpautop'); ?>

    or

    remove_filter ('the_content','wpautop');

    before ending php tag ?> in your functions.php file

  3. Brianair
    Member
    Posted 1 year ago #

    For '
    ' and carriage returns in posts, force a line break in the WordPress HTML editor with:

    <br clear="none" />

    Now that's wpautop relief!

Topic Closed

This topic has been closed to new replies.

About this Topic