• Here’s what I have.

    <div class="entry">
        <?php the_content(); ?>
    </div>

    But when I look at the source it shows as this.

    <div class="entry">
        <p>Blah blah blah</p>
    </div>

    How can I take the actual content out of the <p> tags?

Viewing 1 replies (of 1 total)
  • Add this to all files you want to remove the p tags generated by the_content function on ( or if it’s all pages add it to your header.php file )

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

Viewing 1 replies (of 1 total)
  • The topic ‘Taking posts out of P tags’ is closed to new replies.