Support » Themes and Templates » editing/removing the <p> tag that automatically surrounds the_content

  • When I call the_post there seems to automatically be paragraph <p> tags placed around the text, Can someone tell me where this is configured so that i can either remove the <p> tag to allow for manual inserting where I want so that I can define a particular class be assigned etc for each individual loop/post.

    On this note – is there any documentation/tutorial etc which lists where all the other ‘functions’ are formatted (it the_title… etc) so the same can be done with these?

Viewing 6 replies - 1 through 6 (of 6 total)
  • any news on this issue? i’m actually going thought he same thing.

    OKay, i stumped across a plugin which removes the P’s from the excerpt. SO i modified it to do so for the content. Here it is with credits to the original author!, LOL ONE LINER 🙂

    Plugin Name: No Content-P
    Description: Removes the paragraph tags from the output returned by the_content() function
    Version: 1.0
    Author: Amit Gupta
    Author URI:
    remove_filter(‘the_content’, ‘wpautop’);

    Where does this code go to make this work?

    These p tags are killing my CSS.

    Thank you, mozey! Your code mod has saved me a sleepless night!

    ~ jen



    Thank you so much…. for the code.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘editing/removing the <p> tag that automatically surrounds the_content’ is closed to new replies.