• 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.

    https://tinyurl.com/ofvamz

    Thanks much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    brianair

    (@brianair)

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

    <br clear="none" />

    Now that’s wpautop relief!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing P tags in content – tried suggestions in forums & elsewhere.’ is closed to new replies.