Skip Navigation

No Excerpt P Plugin

 By: Ben Partch » On: August 16th, 2007

A few months back I wanted a way to remove the <p></p> tags from around “the_excerpt” when it is displayed in one of my WordPress blogs.

So I asked Amit who knows just about everything WordPress does, and/or what can be done with it. It took him about 30 seconds to come up with a nifty little plug in that does just what I wanted.

Thanks, Amit!

He did not seem as excited with it as I was, but I see that quite a few people have been asking for this same request at the WordPress support forums so I have decided to just create a page for it in hopes that maybe others will find it as useful, as I have. :)

Download
no-excerpt-p.zip

Installation

  1. Unzip
  2. Upload to: http://yoursite.com/wp-content/plugins/
  3. Goto: http://yoursite.com/wp-admin/plugins.php
  4. Activate the plugin

Your good to go. :)

Of course, if you want the <p> tags around some “excerpts” and not around others you can always add the tags manually.

<p><?php the_excerpt() ?></p>

23 Responses to “No Excerpt P Plugin”

  1. Minnehaha Project » Blog Archive » Plugins Used in Minnehaha  Says:

    [...] Markup: Cleanly display code examples in a post. Get Recent Comments: Display most recent comments. No-Excerpt P: Removes <p></p> tags from around “the_excerpt” Popularity Contest: List [...]

  2. Andrew Bronson  Says:

    haha awesome guys, been trying to work this out for past couple hours

  3. Il tag the_excerpt di Wordpress - TomStardust.com  Says:

    [...] <p></p> intorno a the_excerpt per poter gestire tutto dal template. Il plugin si chiama No Excerpt P, e non fa altro che eliminare la funzione wpautop. In questo modo è possibile inserire il testo [...]

  4. tom  Says:

    Cool, that is working like a charme.
    Thankd alot man

  5. Yahoo Buzz Traffic Strategy - Manuel Viloria.com  Says:

    [...] No Excerpt P Plugin — removes those <p> tags that appear in the default WordPress blog excerpts. Based on our tests, those P tags result in blank Yahoo! Buzz submit pages. It will be a hassle for those who want to submit your stories to Yahoo! Go ahead and try the buzz buttons on this page and see how it works. [...]

  6. Jonny Wright  Says:

    awesome. simply awesome.

  7. guvnrDOTcom  Says:

    Nice plugin but, to keep pageload down, just use …

    … right before …

  8. guvnrDOTcom  Says:

    OK … will try again!

    just use …

    remove_filter('the_excerpt', 'wpautop');

    …right before…

    the_excerpt();

    (enclosing the two statements in php tags :)

  9. Ben Partch  Says:

    @guvnrDOTcom That’s what is inside the plug in, so there is no need to edit the theme files, just upload this plugin and activate it.

  10. How to remove html paragraphs tags from the Wordpress excerpt | Icon IT - Computer, PC repair, web design, Drogheda, Ireland  Says:

    [...] the the fix is simple. There is a wordpress plugin specifically written to remove paragrah tags from the_excerp function. Download it, install it and problem [...]

  11. Ian Conrad  Says:

    Thank you! This is exactly what we needed, was driving me nuts.

  12. Mary J.  Says:

    You can also just use:
    the_excerpt_rss()

  13. Ben Partch  Says:

    Hey Mary

    Thanks for the tip!!!

  14. Adam  Says:

    Hey, thanks! this is the simplest method for getting rid of those tags around “the_excerpt”.

  15. Mary J.  Says:

    Cool, glad it worked.

  16. Sebastian  Says:

    It’s unbelievable, that this Plugin is needed! ;-)
    Why has this tag no parameters?
    Thanx a lot!
    A customer wants to begin the excerpt in the same line as the title – a simple wish, I thought. But it is impossible to do with this paragraph-tag…

  17. Steve  Says:

    Your download link is broken!

  18. Ben Partch  Says:

    Thanks for letting me know. :D Should be fixed now. :)

  19. Kambar  Says:

    “OK … will try again!

    just use …

    remove_filter(‘the_excerpt’, ‘wpautop’);

    …right before…

    the_excerpt();

    (enclosing the two statements in php tags :)

    It worked for me…!!! Thanks dude!!!

  20. RIchard  Says:

    just call…

    echo get_the_excerpt();

    …instead of the_excerpt();

    guvnrDOTcom solution didnt work for me.

  21. moose harris  Says:

    Sweet. This has been bugging me, but it’s so simple, thanks.

  22. Brian Gerald  Says:

    YES! Thank you!

  23. Asim  Says:

    Hi, Ben Partch.

    Thankx for uploading and making a post about it.

    This help me a lot in removing the tags from the description of cu3er slider.

    Once again i thank to you and Amit

Leave a Response

Comment







Syndication

Keep up to date with the latest articles by adding my RSS feed to your feed reader, or you can also subscribe by Email


Top of page...