Whether you know it or not, you'll probably use the_excerpt on your website. At its simplest, the_excerpt will display the last 70 odd words from your posts on the homepage, or a couple of words explaining what the post is about, as it is on CatsWhoCode. But say you wanted to display 200 words and images. Without editing the core Wordpress files, there is no way you can do that, without installing a plugin, like the_excerpt_reloaded.

You can download it here (clicky). Install it and activate it in the normal way. If you don’t know how to do that, head over to the Wordpress codex (clicky).


Next thing we’ll need to do is edit your theme’s files in order to integrate the_excerpt_reloaded. On your Wordpress admin panel, click design, then theme editor. Then under “templates” click “Main Index Template” (or whatever the homepage for your theme is). You’ll then be presented with a whole load of code. Before you edit anything, you should always back up what anything you’re changing, so copy and paste your code into Notepad, or if you’re running Ubuntu, text editor will do the same job.

Once you’ve done that, you need to hunt down the_excerpt. If you can’t see it, use your browser’s search function to find it (ctrl + f). Once you’ve found it then we can start editing! the_excerpt_reloaded lets you do some quite advanced stuff, so I’ll briefly run through what you can do:

  • The default setting, with the code just being <php the_excerpt_reloaded(); ?>, on your page displayed will be 120 words of either your excerpt field or the first 120 words of the post. You can set the number of words to whatever you like, but here we can set it to 50 by putting 50 in the brackets:<php the_excerpt_reloaded(50); ?>
  • We can add more functions by putting a comma after the 50, so say you wanted to allow images to be shown, you’d put:
    <php the_excerpt_reloaded(50,'<img>'); ?>
  • Read On! You don’t have to have “more…” at the end of your excerpt – by adding in “TRUE, ‘Read on’” at the end of your excerpt, you can say “Read on”. So our excerpt now looks like this:
    <?php the_excerpt_reloaded(50, '<img>', TRUE, 'Read on'); ?>
  • Excerpt x2! On my site www.nometet.com, I’ve got two excerpts: a quote from an article and the first 200 words from the post. How do you do that? add in 2 to your excerpt, so our excerpt now looks like this: <?php the_excerpt_reloaded(50, '<img>', TRUE, 'Read on', 2); ?> The 2 is telling Wordpress to fake the excerpt as real content, so always displaying the first 50 words even if you’ve written something in the excerpt box.

So thats the basics covered. You can do even more with the_exerpt_reloaded! Check out the plugin homepage here for more info.

Oh, and its my first post here! I’m Alex Denning, Wordpress power user, web design freelancer and editor of Nometet.com and GGG! I’d appreciate any feedback; have I pitched this too simply, or have I assumed you know too much? If you want to speak privately or are interested in having some web design work done, drop me an email: alex (at) nometet (dot) com.

Related Posts

No related posts.
 

25 Comments

  1. Posted December 4, 2008 at 11:00 am | Permalink

    Great plugin. I was making excerpt posts to show outside my blog with default excerpt yesterday, but although i wanted to customize it a bit, i didn’t know how to do that. And today i came to this :) . Thanks for sharing.
    p.s. one question, img parameter takes image from post or we have to name it in excerpt field ?

  2. Posted December 4, 2008 at 12:37 pm | Permalink

    @Catrin W: The img parameter takes the image from the post

  3. Posted December 4, 2008 at 2:43 pm | Permalink

    Nice plugin! Thanks…I love wordpress’ versatility.

  4. Posted December 4, 2008 at 11:22 pm | Permalink

    That is pretty cool. Currently, I’m having to remember to manually do it per blog post.

  5. Posted December 5, 2008 at 3:08 pm | Permalink

    I have not started using the excerpt field at all that came in with later releases… Never got a habit of doing those except for ‘more’ tags.

    Will take a look…

    Ajith / DollarShower

  6. Posted December 5, 2008 at 4:13 pm | Permalink

    By itself it is a great plugin but it is great that you took time to explain how to implement it. For people not used to reengineer wordpress blogs that is a big help.

  7. Posted December 7, 2008 at 2:39 am | Permalink

    Cool plugin. That’s what’s great about wordpress. So many plugins to extend it functionality.

  8. Posted December 7, 2008 at 6:31 am | Permalink

    Loll nice one..

  9. Posted December 12, 2008 at 5:13 pm | Permalink

    Great plugin just what I needed. That’s what I love about Wordpress it makes things so easy with some great plugins.

  10. Posted December 13, 2008 at 4:42 pm | Permalink

    Very useful articles, interesting and informative. Thanks,I like it.. I’ve bookmarked this… thank you for sharing. I will definitely visit again.

  11. Posted December 22, 2008 at 6:29 am | Permalink

    the_excerpt_reloaded is great, but we need to manually edit our theme to get the results.

    maybe you could also try using homepage excerpts from dailyblogtips,
    http://www.dailyblogtips.com/homepage-excerpts-wordpress-plugin/

    one great thing about the plugin, all configuration can be done in the wp admin panel.

  12. Posted December 22, 2008 at 9:04 am | Permalink

    I know it is a little off topic but do you know of anyone having done analysis on whether having a blog using excerpt have any positive effects on readership / pageview / time on site etc.?

  13. Posted December 22, 2008 at 1:06 pm | Permalink

    Thanks for sharing.I run a Wordpress blog myself and have been wondering how you can get short excerpts to show.There seems to be a plugin for everything in Wordpress,Thanks!

  14. Posted January 29, 2009 at 6:48 pm | Permalink

    Great article. Contained the information that I needed with one exception..

    I’m using this command on my category page… but I don’t want to display the full size image…

    How can I display the thumbnail or resize the image height?

  15. Posted February 9, 2009 at 10:31 am | Permalink

    There appears to be an updated version of this plugin at http://robsnotebook.com/the-excerpt-reloaded, but I have yet to test it with WordPress 2.7.

  16. Posted February 14, 2009 at 12:05 pm | Permalink

    I’m also thinking of adding a an excerpt to the home-page because it limits your homepage and gives a snifty, clean look!

  17. Posted February 18, 2009 at 4:07 pm | Permalink

    Very nice tutorial. I also use an advance excerpt function within my blog.

  18. Posted February 26, 2009 at 12:51 am | Permalink

    Wow great post. I have been searching online for awhile and I came accros this post. It was just what I needed. Thanks and keep up with the great content. Awesome plugin

  19. Posted March 14, 2009 at 7:08 am | Permalink

    Wow great tip i am currently working on a project and this will help me add just the tight length expert to areas i want.

  20. Posted June 15, 2009 at 4:21 am | Permalink

    i like this one,cool cheers!

  21. Posted June 15, 2009 at 4:48 am | Permalink

    tons of good info. Thanks saving this

  22. Posted July 12, 2009 at 10:00 am | Permalink

    Thanks for the post, I will let my family and friends know about this blog
    cheers.

  23. Posted July 29, 2009 at 5:42 am | Permalink

    I have the Excerpts Reloaded plugin built into the theme I am working with. I am having a tough time getting thumbnails to display to the left of the excerpt. Any suggestions?

    Thanks,
    Jay

  24. Posted November 8, 2009 at 3:17 am | Permalink

    Great post as per usual. I really like this glad. Off to google to do more research.

  25. Posted January 15, 2010 at 11:48 am | Permalink

    Thankyou so much for this. I’ve been looking for a plugin that does just this for ages. I’ve bookmarked your site, there’s loads of great high quality tips here.

3 Trackbacks

  1. [...] Make Full Use of Wordpress with the_excerpt_reloaded! [...]

  2. By BlogBuzz December 6, 2008 | Webmaster-Source on December 6, 2008 at 12:16 pm

    [...] Make Full Use of Wordpress with the_excerpt_reloaded! [...]

  3. By D/A» The Excerpt Has Landed on July 13, 2009 at 1:32 pm

    [...] tag or make the ill-informed decision of utilising the excerpt field in the dashboard. There is a promising plug-in called the_excerpt_reloaded that I am going to look [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Smashing Network
  • Hosted by VPS.net and Akamai CDN
WordPress Appliance - Powered by TurnKey Linux