WP plugin: the_excerpt Reloaded

posted on February 26, 2005  (Update: March 3, 2005)

With time on my hands this afternoon I decided to use some up and post about my last *older* WordPress plugin previously gone unmentioned on guff.

Based on the_excerpt, the_excerpt Reloaded, when a post does not contain an excerpt, displays the contents of the post (typically abbreviated), which can be customized on which HTML tags to allow, length of the excerpt (in words), “more…” link, and filtering type. The plugin’s function the_excerpt_reloaded() must be used in The Loop.

To install and use the_excerpt Reloaded, download the zip file, extract the-excerpt-reloaded.php, upload this to your wp-content/plugins/ directory, and activate the plugin in WordPress. The function the_excerpt_reloaded() must be used in The Loop.

Usage:

<?php the_excerpt_reloaded(excerpt_length, 'allowedtags', 'filter_type', use_more_link, 'more_link_text', force_more_link, fakeit, fix_tags); ?>

Parameters:

excerpt_length
(integer) Number of words to display before ending the excerpt. Default is 120.
allowedtags
(string) Defines which HTML tags to retain in excerpt. Use the format '<img>'. For multiple tags, enter as single string: '<a><img>'. Default is '<a>'.
filter_type
(string) Defines how WordPress should filter/format an excerpt’s content. Options are based on content/excerpt tags: 'content', 'content_rss', 'excerpt', 'excerpt_rss'. Set to 'none' to display raw content. Default is 'excerpt'.
use_more_link
(boolean) Should the “more” link be displayed (TRUE) or not (FALSE). If set to false, function displays ellipsis (…) if content more than that displayed; neither link nor ellipsis displays if output is less than excerpt_length; Defaults to TRUE.
more_link_text
(string) If use_more_link is set to TRUE, set this to define what text to use for the link. Default is '(more...)‘.
force_more_link
(boolean) Display more link (TRUE) or not (FALSE), even when excerpt is less then excerpt_length. Defaults to FALSE.
fakeit
(integer) Use content as excerpt (1) or not (0) if excerpt is empty. Set to 2 to force content as excerpt under all conditions. Defaults to 1.
fix_tags
(boolean) “Repair” HTML tag elements (TRUE) or don’t (FALSE). This is implemented to deal with improperly closed tags which may be caused by excerpt_length. If fix_tags is set to FALSE, the plugin will not attempt XHTML validation and repair on improperly closed tags (due to excerpt_length breaking them in mid-element). Defaults to TRUE.

Examples:

<?php the_excerpt_reloaded(); ?>

Displays defaults: 120 word excerpt; allow anchor (<a>) tag; ‘excerpt’ as filter type, use “(more…)” as more link if excerpt less than content; fake content as excerpt unless post has an excerpt.

<php the_excerpt_reloaded(25, '<img>', 'content_rss', FALSE); ?>

Displays: 25 word excerpt; allow image (<img>) tag; ‘content_rss’ as filter type; do not use more link; fake content as excerpt.

<?php the_excerpt_reloaded(50, '', 'none', TRUE, 'Keep reading >>', FALSE, 2); ?>

Displays: 50 word excerpt; no allowed tags; raw content output; “Keep reading >>” as more link if excerpt less than content; use content for excerpt even if excerpt exists.

Additional Information:

To make formatting the more link easier, the_excerpt Reloaded wraps the link in a <div> tag and assigns the CSS class ‘more-link’ to it. Here’s an example stylesheet declaration for it:

.more-link {
   font-style: italic;
   text-align: right;
}

Author: Kaf Oseo
Categories: WordPress
Comments: (240) · Leave a comment · Comments RSS2 · Trackback URL

Ian Beck
Comment » March 3, 2005 @ 6:43 pm

Your link to the .zip file is pointed to post-updated.zip instead of the-excerpt-reloaded.zip. Thought you might like to know. :-)

Kaf
Comment » March 3, 2005 @ 8:34 pm

Yoinks! I’ze shones the world I copies and pastes.

Fixed.

plebian
Comment » March 9, 2005 @ 12:24 pm

Hi. Nice work. You may want to consider a delimiter to be used instead of number of words.
That would allow for way more flexible excerpts or varrying lengths.

Kaf
Comment » March 9, 2005 @ 1:50 pm

plebian, like the <--more--> Quicktag as it behaves with the_content() tag? I’m working on an update, so I’ll look at this. Thanks.

jim
Comment » March 9, 2005 @ 2:39 pm

If you added the delimiter, why not just use the tag?

jim
Comment » March 9, 2005 @ 2:40 pm

the ” tag” is what i meant in the earlier comment.

jim
Comment » March 9, 2005 @ 2:40 pm

dang it, the *more* tag. :)

Kaf
Comment » March 9, 2005 @ 6:10 pm

A ‘more’ link is used in the_excerpt Reloaded, but the plugin ignores the Quicktag in a post’s content, much like the standard the_excerpt() tag does. But then, my plugin is not standard…

There is no spoon, but there is a ‘more’ tag!

Richard
Comment » April 12, 2005 @ 8:10 pm

Kaf, your a WordPress Guru mate!
I think WordPress is a fantastic CMS but I beleive there major downfall is useability and experience design in general. I mean in the process of putting together what i consider a basic blog/ site i’ve had to download over 15+ plugins to get it to function as it should.
The excerpt reloaded should come as a standard plugin with WordPress me thinks “)

Kaf
Comment » April 13, 2005 @ 11:14 am

Thanks Richard. I consider myself just another WordPress user with a strong coding bent and serious need to customize. Gurus get paid…

Maira
Comment » April 23, 2005 @ 8:04 am

Wonderful plugin! Thanx a lot! My blog was showing awful things in posts with Exhibit pics, I couldn’t get rid of them until I found this site via Carol’s one (oh-dear dot org). Many thanx again!

mahalie
Comment » May 3, 2005 @ 8:39 pm

It would seem the link to your zip file has gone awry. I keep getting your main blog page when I try to download it. I went ahead and copied/pasted the code from your PHP display page for the excerpt Reloaded plugin but when I tried to activate it I got several errors. I thought I’d see if it was a problem with my copy/paste job before moping around for help! Btw, I’m using WP 1.5. Didn’t see any reference to WordPress version compatibility for your plugin anywhere. Thanks for the plugin, it’s exactly what I need! I hope I can use it!

mahalie
Comment » May 3, 2005 @ 8:50 pm

Hi…I’m the dork that just commented about errors with your plugin. While it’s true the zip file seems to have moved, pasting the PHP into a file works fine…if you’re smart enough to make sure there’s no extra spaces after the PHP closing tag (">). Thanks again (you might want to approve this comment for other noobs with my silly problem).

Kaf
Comment » May 4, 2005 @ 1:37 am

mahalie, the zip was where it belongs, but an update to another plugin of mine on the site didn’t go well and caused the issue with downloads you were seeing. This has been fixed.

Thanks for the notice!

Brian
Comment » June 9, 2005 @ 3:42 pm

I got a fatal error: call to undefined function when trying to include your very nice sounding pulgin . I unzipped the php file to the plugins directory, and just used the default setting of the_excerpt_reloaded. Is there any way I can figure out why it isn’t recognizing? Do I need to manually include the php file somehow? THanks.

Brian
Comment » June 9, 2005 @ 4:03 pm

I’m an idiot. I didn’t activate it. It works beautifully now. But I have one more question. Is there any way to make it so that the “more…” text doesn’t break to the next line but just follows right after the main text? I didn’t see a ‘br’ or a ‘p’ tag being inserted, but for some reason the ‘more’ link always breaks to the next line. Thanks again.

Tom
Comment » June 23, 2005 @ 7:45 pm

Cool little plugin, the default function is rubby.

Tom
Comment » June 23, 2005 @ 8:24 pm

Rubby? Rubbish is what I wanted. All these late nights ….

N. Mallory
Comment » July 3, 2005 @ 3:43 pm

Just thought I’d pass that bit on. The “ coding causes an error when trying to validate. I hacked the pluggin to change the `s` to `s`.

N. Mallory
Comment » July 3, 2005 @ 3:44 pm

Grrrrr….That should be that the divs are causing a problem and had to be replaced with spans. However, now, the nifty right-sided formatting is gone.

David
Comment » July 18, 2005 @ 11:06 pm

Hi;

I’m running WP 1.5.1.3, and your plugin works great except:

In the admin section, I get these errors (I’ve swapped some *s in for some bits):

Warning: Cannot modify header information - headers already sent by (output started at ****/****/public_html/wp-content/plugins/the_excerpt_reloaded.php:90) in ****/****/public_html/wp-admin/admin.php on line 10

…[edited by admin]…

Any ideas/solutions?

David
Comment » July 18, 2005 @ 11:09 pm

Woah! And on logout, a whole host of errors:

Warning: Cannot modify header information - headers already sent by (output started at ****/****/public_html/wp-content/plugins/the_excerpt_reloaded.php:90) in ****/****/public_html/wp-login.php on line 11

…[edited by admin]…

Kaf
Comment » July 19, 2005 @ 8:54 am

David, did you copy the source code and save that? See this for information on fixing your problem:

http://codex.wordpress.org/Answers-Trouble_Shooting#Headers_already_sent

Or download the zip file and extract the plugin from that.

David
Comment » July 19, 2005 @ 5:16 pm

Ok, so problem fixed. I copied and pasted the source from your .php file, still got the problem. So deleted that off my server. Then used the ZIP, and everything was OK.

Did notice that the problem occured in the files with words separated by underscores, whereas dash separated filename worked fine. I have no idea if this means anything, but maybe there’s a subtle difference between the two?

Anyway, thanks for your help - great plugin!

mms
Comment » August 15, 2005 @ 9:47 am

Hi I’m using your plugin and very happy about it, but I recognize it *kills* my links in the excerpt. Why? and How can I resolve this.
kindly regards
mms

Misfist
Comment » August 28, 2005 @ 3:20 pm

I suspect I’m doing something wrong, but…

I inserted the code in the following manner:

–>

(commented out the original content code)

This is working fine on the list page, except the “more…” link doesn’t appear for posts that have an excerpt. Not hugely troubling.

On the full post page, the post displays like it does on the list page, so it is truncated and there is no way to see the full content. That is, this formatting seems to be applied to my full text as well.

Any ideas?

Misfist
Comment » August 28, 2005 @ 3:25 pm

Silly me…

Here is the code I meant to paste in:


<div class="storycontent">
<!--<?php the_content(__('(more...)')); ?>-->
<?php the_excerpt_reloaded(50, '', 'content', TRUE, 'more..', FALSE, 1, TRUE); ?>
</div>

kc khong
Comment » August 30, 2005 @ 7:50 am

Hi Kaf,
I’m a virgin @ blogging. I’m really struggling with this one. I found the index.php file in the themes folder but don’t know where I should stick in the function the_excerpt_reloaded(). I copied index.php below. Really appreciate if you can show me which line to put the function. Thanks

“>
” rel=”bookmark” title=”Permanent Link to “>
–>

Posted in | |’); ?>

Not Found
Sorry, but you are looking for something that isn’t here.

kc khong
Comment » August 30, 2005 @ 7:54 am

ooops forgot to comment the loop code:

“>
” rel=”bookmark” title=”Permanent Link to “>
–>

Posted in | |’); ?>

Not Found
Sorry, but you are looking for something that isn’t here.

–>

kc khong
Comment » August 30, 2005 @ 9:23 am

aaaarrrgghhh Sorry, had to release my frustration. No matter where I pasted the function in index.php (from the default themes folder), I can’t get it to work properly.
I can get reloaded to generate and display the excerpt (that means the plugin is correctly activated, right?). BUT index.php still displays the entire post!
1) I uploaded the plugin from the zip file & activated it
2) I opened index.php from the themes folder (defult Kubrick) & pasted the function (php the_excerpt_reloaded(50, ”, ‘none’, TRUE, ‘Keep reading >>’, FALSE, 2); ?>) within the LOOP before the first div tag

3)What else should I do?
Pls help. This T-rex is really going nuts
Thx.

kc khong
Comment » August 30, 2005 @ 10:08 am

Yippppeeee I ain’t no T-rex after all.
Found the answer at http://wordpress.org/support/topic/38788
For those who just installed WordPress with the default Kubrick theme, the link I pasted above is the answer.

she
Comment » September 2, 2005 @ 7:12 pm

hey. i use this and thanks.
i use this plugin such as following.
<?php the_excerpt_reloaded(120, ‘<a>’, ‘excerpt’, TRUE, ‘more »’, FALSE, 1, TRUE); ?>
but.. if the summary ends before the tag of “a” closes, it’s not valid due to the result of folling.
<p>content summary……… <a href=”add”>link <br /><p><a href=”morelink”>more »</a></p></a></p>
i want to use <p>tag. but.. it’s nothing i want.
can u understand it?
plz answer me the way to solve this.

Amulet
Comment » September 13, 2005 @ 6:06 pm

I can get it to work in general, but clicking the “More…” link doesn’t take it to the full post. Instead, it takes it to a page with the same excerpt, including the “More…” link. Am I doing something wrong?

Amulet
Comment » September 13, 2005 @ 8:06 pm

Never mind, got it working. The link to the solution kc khong posted worked for me, too. I originally had his/her problem, but figured out that the_content was why it was duplicating the post (one excerpted), but I needed the same code s/he used to have it post the full post after a visitor clicks on the “More…” link.

Jim Renaud
Comment » September 16, 2005 @ 11:15 am

Kudos, kudos… How can I get rid of the break it adds when I change the more_link_text?

For instance my text goes something like this:

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

Keep reading>>

I’d like to get that “Keep reading>>” to follow directly after the text with no break.

moshu
Comment » September 21, 2005 @ 2:22 pm

Thanks for the plugin. It works, except I cannot figure out how to achieve what I need. I am using it in the archive.php template to display only excerpts and a “Keep reading” more-link.
Some posts do have text typed in the Excerpt field, others don’t.
For the posts not having anything in the excerpt field - it displays the more-link.
For the posts that have anything in the Excerpt field - it doesn’t display the more-link.
I am using this code:
the_excerpt_reloaded(30, '', 'excerpt', TRUE, 'Keep reading', TRUE, 1);
According to the instructions the TRUE after the “Keep reading” should force the link anyway. What am I doing wrong? I need the more-link always to be displayed.
Thanks.

Bill
Comment » September 21, 2005 @ 8:03 pm

Any updates available to this plugin? Perhaps on that uses the –more– tag as a deliminater, as mentioned early on in these comments?

Bill
Comment » September 21, 2005 @ 8:53 pm

Shouldn’t force_more_link, do what it says, no matter what the circumstances? When fakeit is set to 1, force_more_link doesn’t do anything. The manually entered excerpt takes over, minus the more_link_text.

Niche Marketing Guy
Comment » October 7, 2005 @ 1:57 pm

Hi, I’m using the following tag.

< ?php the_excerpt_reloaded(100, '', 'none', TRUE, '( Read More... )', FALSE, 2, fix_tags); ?>

My problem is when it’s displayed, it’s ignoring the line breaks. I added ‘p’ tag to it (removed from the tag for now because this comment is automatically closing the HTML tags) , but it’s still ignoring it. Is there a solution for this? Thank you.

John Dehlin
Comment » October 11, 2005 @ 11:46 pm

I have the same problem as Jim. How can I get the “more” link to show up on the same line as the excerpt?

Rhand
Comment » October 14, 2005 @ 8:57 am

Hi,

I am thinking of using you excerpt_reloaded. I want the index page to show an excerpt or part of the post with a link to the whole post. Is your excerpt_reloaded suitable for that?

Thanks,

Rhand

Greig
Comment » November 6, 2005 @ 7:04 am

I’m totally new to php and just installed your excerpt reloaded plug-in. I’m using the Sharepointlike theme. I still can’t get any “read more” link to display. I have only added this code to The Loop in my Main template:

‘, ‘excerpt’, FALSE, ‘keep reading >>’, FALSE, 1); ?>

what else am I missing? I downloaded the plugin because I was having the same problem when using The_content() commands for displaying the link.

Vincent
Comment » November 8, 2005 @ 10:47 pm

Something has gone wrong on our side, what is happening is the whole thing has gone into reverse, the whole post is now showing on the index page and the excerpt is showing in catergories, anyone know how to fix this please?

SignoraM
Comment » November 17, 2005 @ 2:49 pm

Love the plugin, got everything working except one relatively minor problem - it’s not closing OL tags even when setting fix_tags to TRUE. Is there something I can try or are there just some instances when it won’t work properly? My only real problem with this is that I’m trying very hard to have a blog that validates at all times and this breaks that when using searches or archives (where I have the plugin being used). I imagine at some point this will force the content of other excerpts below one with an OL tag to also be in a list format but it hasn’t happened yet…that would be bad. Ideas?

1stpixel
Comment » November 21, 2005 @ 10:45 am

Beautiful plugin. One minor glitch: it doesn’t seem to close “strong” tags.

Mark Wegner
Comment » January 5, 2006 @ 6:02 pm

Is it possible to use the excerpt reloaded to modify the rss feed when “summary” is enabled and only excerpts are displayed in the feed. Is that ok to use with html tags?

Scott
Comment » January 9, 2006 @ 11:31 am

I’m looking for solution like Jim Renaud and John Dehlin have posted–
Is it possible to have the ‘More…’ link show up on the same line as the excerpt?

ghusse
Comment » January 18, 2006 @ 7:18 am

I tried successfully your plugin which is very usefull. But I noticed a bug : I authorised the HTML tag “blockquote” in your function and ask it to correct the tags.

If your function cut a blockquote element, it does’nt place the /blockquote tag before ending.

Ashiq
Comment » January 18, 2006 @ 6:13 pm

Your plugin rocks. Rock on, dude.

klick
Comment » January 21, 2006 @ 12:02 pm

yep. nice one!

one question:

is it possible to automatically display the thumbnail with a link to the post within the excerpt?

if it is … how do i manage this? (using wp 2.0)

thanks,

klick

Alex
Comment » January 31, 2006 @ 10:39 pm

Cool little plugin )

Nathaniel
Comment » February 5, 2006 @ 5:41 pm

I’m with the others who’d love a way to have the “More…” link not be on a newline.

There do seem to be a number of tags that don’t get automatically closed, blockquote is one, code is another I’ve found.

One suggestion might be to somehow get together your customization options and the Fancy Excerpt code to make it automatically try to excerpt with complete sentences.

thanks for great code!

N. Mallory
Comment » February 6, 2006 @ 2:04 pm

I love this plugin. I use it on all my blogs.

I do have a couple of suggestions for a future version.

1. I agree that it would be nice if the more… came at the end of a sentence (preferably a paragraph).
2. It would be nice to have the option that if there is a more quicktag in the post, the quicktag is used instead of the word count.

Sirlin
Comment » February 15, 2006 @ 4:36 am

I’m having the same problem as moshu and bill. I’d like the “more…” link to appear always, but it doesn’t when I set force_more_link to TRUE. Perhaps this is happening whenever a manually entered excerpt exists, but is shorter than the excerpt_length (not sure). Even in this case, I’d like the “more…” link to appear.

Another issue I’m having is that I’d like to put an image in many of my excepts, always formatted ‘left’ so text flows around it and with a little padding, always clickable and linking to the permalink of the post it’s in, and always with rollover text that is makes some kind of sense (maybe the post name, not sure). Anyway, it looks like the TinyMCE editor doesn’t even use the excerpt field. I have no idea how to automate the all the steps I mentioned above so I don’t have to do them for every excerpt image. Any tips are greatly appreciated.

I really like this plug-in overall, great job!
–Sirlin

Sirlin
Comment » February 20, 2006 @ 2:04 pm

Ugh, after many hours I realized that the zip file is version 0.2 but the the “display php” file above is version R1, and actually works. (That is, if you copy and paste it into a text file and remove the space at the end of the file. That took another hour or so to figure out.)

I’ve had more trouble getting this plugin to work than anything else in wordpress, but when it does work it’s great.
–Sirlin

Brendan
Comment » February 21, 2006 @ 1:28 pm

there’s another plugin much like this one that we use at our site called Limit Posts.

http://labitacora.net/comunBlog/limit-post.phps

Kaf
Comment » February 28, 2006 @ 3:02 pm

Sirlin, thanks for catching that.

If you were having problems getting the plugin to work, try downloading the zip again. Note R1 will not fix *some* of the issues mentioned above, especially those dealing with proper closing of HTML tags. That’s due to WP’s balanceTags() function, which this plugin uses to “fix tags.” I’ll look to see if I can do things better when I finally get around to finish upgrading this puppy.

Yes, I am already working on what I call the Revolutions edition of the_excerpt Reloaded, incorporating a number of your suggestions, some fixes, and even a couple improvements I came up with all on my own…

Mick
Comment » March 1, 2006 @ 8:39 am

I’m having an identical problem to the one Niche Marketing Guy had in October. For some reason Wordpress’s auto-paragraphing does not work inside the excerpt, even when I include ” as an allowed tag. My code looks like so:

——————-
<? php if(is_category() || is_archive() || is_home()) {
the_excerpt_reloaded(120, ‘<P><b><i><u><em><strong><blockquote><img><a><ol><ul><li>’);
} else {
the_content();
} ?>
——————-

But I cannot get a new paragraph break to appear in the excerpt, unless I manually peck it in. Bold, italic, blockquote — these all appear correctly within the excerpt. Auto-paragraphing is the only thng that won’t work. Any tips? Solutions?

Hopefully I’m not crazy. Other than this problem, though, the Reloaded plugin is excellent.

Christopher
Comment » March 18, 2006 @ 9:39 pm

Is it possible to make the more link appear when an exceprt is manually entered? Does this plugin work with v 2.02?

m0n
Comment » April 10, 2006 @ 3:58 pm

Only success with your superior plugin. I look forward to more of its use on my website. Utter props out to you for a remarkable WordPress plugin. Thank you for this!

Dating Advice
Comment » April 27, 2006 @ 3:29 pm

Thanks for sharing this very cool plugin. Thanks for pointing out the plugin. Is there a way to modify the code so as to insert the nofollow tag, for the more link. For seo you don’t want two urls going to the same article.

Ian Beck
Comment » May 3, 2006 @ 1:18 am

R1 of this plugin fails to pass $fix_tags from the_excerpt_reloaded() to get_the_excerpt_reloaded(), which makes for some weird issues when trying to get it to format things the way you want.

flys
Comment » May 5, 2006 @ 1:04 pm

hi to all, i need your help, please

I tried to install the wp-PostRating plugin, that one with a stars.. but i’ve some problems:

1 - the stars are too far from each other and not close among them as i see as default, i tried to put the code into a tag with div align=right, but don’t works.

2 - the rollover state (green color) don’t work in my site ….

Someone that use this plugin can help me ?
thanks in advance

the site where i’m trying to put this plugin is:
internet marketing lessons

the plugin site is:
http://www.lesterchan.net/wordpress/

Dave
Comment » May 11, 2006 @ 8:13 pm

Hi.

This plugin is great. However in the interests of customising my site, there’s two things I’d like to do that I can’t seem to figure out. One, I’d like to replace the “more” text with a graphic but I get errors when I place an tag in the conditions, and two, I can’t seem to get the “more” text to follow on from the excerpt instead of placing itself on a new line.

Sorry if these are dumb questions - I’m a blog newbie and I’m trying to customise my first wordpress theme,

TIA

Halo
Comment » May 13, 2006 @ 7:57 pm

Great plugin been helpful making my blog a mullet.

For Dave above me I THINK you will have to “allow” the tag when you call excerpt_reloaded e.g. instead of allowedtags you need to put in also putting the link on the end of the paragraph is impossible I THINK it’s a quirk of wordpress and the way it treats the excerpt by putting a tag on the end by default, if I’m wrong someone correct me as I would like this too.
Also this plugin for FF may help with your IE problem (http://addons.mozilla.org/firefox/1419/) as it lets you see a site as IE would render it in a FF tab.

Max
Comment » May 15, 2006 @ 3:06 am

I think this is a great idea for a plugin, however I’m having a few problems:

The “all” parameter doesn’t work
After you insert the password for a post, it doesn’t display the excerpt

Now, I’ve been looking at code since yesterday morning, and I’m extremely tired… Could anyone tell me ways I can fix this?

Thanks

Chris
Comment » May 17, 2006 @ 5:27 pm

Thanks for the plugin. One thing I’m not sure about, if I have a post that uses the <!--more--> tag then it overrides the excerpt_length, no matter how it is set (even tried hard coding it in the plugin). Using WP 2.0 - haven’t got round to upgrading yet.

Is this excerpt_length behaviour normal? Thanks!

Craig
Comment » May 22, 2006 @ 10:12 am

Sorry to ask a (probably stupid) question, but I’m looking for a certain function and can’t find it anywhere.

Does this plugin allow me to
a) Use the “excerpt” from the write->post page
AND
b) Add a custom link at the end like “Read the full story…”??

If so, I’d be stoked. If not, any suggestions on how to do this.

Cheers

Nick
Comment » May 23, 2006 @ 9:34 am

The ‘all’ parameter for the HTML tags doesn’t work. It just spits everything out without formatting at all. Can you help me out at all?

Jeremy
Comment » June 3, 2006 @ 9:13 pm

I am having the same issue as Chris above. When a Post has a MORE tag placed within it,.. it overrides the excerpt reloaded…Is there a fix for that?

entropy
Comment » June 7, 2006 @ 1:50 pm

Has the line break problem ever been resolved? I read all the comments but didn’t see anything resolving the issue of the “more” breaking on its own line. This looks really conspicuous especially after the ellipsis…

more

Serge Norguard
Comment » June 14, 2006 @ 12:37 am

hey there, i would like to know where do i change the “more_link_text” ? Is it at the plugin or at the code that is placed in the template ? I’m trying to change the “(read more…)” to something else.

Serge Norguard
Comment » June 14, 2006 @ 12:47 am

whoops… never mind…found the answer.

Serge Norguard
Comment » June 15, 2006 @ 10:53 pm

i would like to know how do i force a “more_text_link” , when my post is under an “excerpt” ? as i notice the “more_text_link” only appears when i do not place anything under the “excerpt” column of the post area.

Christian
Comment » June 17, 2006 @ 10:43 pm

Hi,

i have a problem with the image tag, there’s no break after the image. You can see it on my page. Any ideas how to fix this? Thx in advance.

Gail
Comment » June 24, 2006 @ 2:19 pm

Very nice. Your plugin is perfect for my Dapit Hapon, Kurtina and Isla themes :)

David
Comment » July 9, 2006 @ 4:59 pm

Thanks Kaf !

This plug-in is exactly what I was looking for. The hidden options ($no_more and $more_tag) were especially useful for me.

suzie
Comment » July 11, 2006 @ 4:37 pm

This plug-in is perfect for what I’m doing, but I can’t remove the category showing up on the the_keywords(). I tried adding $include_cats=’false’ and it does not work. Can someone help me?

lemontonic21
Comment » July 17, 2006 @ 12:34 pm

hey there, great plugin! is it possible to change the line spacing and -height only for the excerpt? I’ve tried different things like creating a class for the excerpt but it didn’t work…help needed :)

Copperset
Comment » July 17, 2006 @ 5:21 pm

I noticed that with your plugin there is always a space before the very first word of the excerpt. As you know, this is because of your code below:

$output .= $text[$i] . ‘ ‘;

If I get rid of the space between the ‘ ‘ to make it ” it will obviously get rid of the space before the first word but it will also take out every space between every word making the excerpt one big long word. Would you know of a way to just get rid of the space before the first word of the excerpt? Thank you for you help!

MrAnderson
Comment » July 26, 2006 @ 5:00 pm

Great plugin… solved my problem with the excerpts in K2 in association with wp-alexify plugin… only one thing to say…

I have the more tag in some posts, so the excerpt in that posts goes beyond the defined lenght of the excerpt until the point that the more tag was defined in the content of the post… any choice to solve that??

MrAnderson
Comment » July 29, 2006 @ 8:57 am

IMHO there’s no need for de <div class=”more-link”> in the code, it does not validate as XHTML… I’ve deleted it and it’s working great and validates with no problem. I still haven’t solved the <!–more–> problem… so I had to delete them for now until there’s one solution… Greetings ;)

MrAnderson
Comment » July 29, 2006 @ 9:10 am

I apologize… it validates but there was lacking a </p> before the <div class=”more-link”>

The code gets finally like this

$output .= ‘</p><’ . $tag . ‘ class=”more-link”>

Greetings, and sorry for the multiple comments

Pariah S. Burke
Comment » August 10, 2006 @ 2:23 am

It doesn’t appear to work on WP 2.03. I’m running the_excerpt_reloaded on several WP1.5x installs, but during my testing for an upgrade to WP2.03, the word count is completely ignored–if a post has an excerpt, the entire thing is shown, otherwise the post is shown down to the <!–more–> tag.

To wit, both of these turn out exactly the same information–several hundred words in the case of some posts:

<?php the_excerpt_reloaded(120, ”, ‘content_rss’, false); ?>
<?php the_excerpt_reloaded(5, ”, ‘content_rss’, FALSE); ?>

Both are also working correctly currently on WP1.5 installs. All other params work–content is different from content_rss, and so forth; it’s just the word count that completely fails.

steve
Comment » August 12, 2006 @ 6:39 am

Okay I am going to risk looking extremely stupid. I have activated the plugin for excerpt_reloaded. what now? I thought I would be able to modify it somehow from the admin section. I cannot see any reference to the plugin

steve
Comment » August 12, 2006 @ 9:27 am

Okay I’m getting somewhere. Now the problem i have is I click on the header of the excerpt and it goes to another page with only the excerpt and not the full content. How do I fix this?

Scott Carpenter
Comment » September 2, 2006 @ 1:20 pm

First, thanks Kaf, for this plugin and all the other good work you do.

MrAnderson: Thanks for the tip on adding the </p>. (I first tried it in the $force_more part of the “if” statement without really paying attention and realizing it needs to go in the “else”.)

I think there is a small chance this could cause a validation error if you didn’t happen to be in a <p> tag, but it almost always causes a validation error otherwise so this is an improvement. (I notice there is always a <br /> tag right before the more-link but not sure where it comes from and not going to investigate at the moment.)

I was also interested in overriding the <!--more--> link and got that to work by commenting out some code:


/* if(!$no_more && strpos($text, '<!--more-->')) {
  $text = explode('<!--more-->', $text, 2);
  $l = count($text[0]);
  $more_link = 1;
} else { */
  $text = explode(’ ‘, $text);
  if(count($text) > $excerpt_length) {
    $l = $excerpt_length;
    $ellipsis = 1;
  } else {
    $l = count($text);
    $more_link_text = ”;
    $ellipsis = 0;
  }
//}

Eddie
Comment » September 18, 2006 @ 9:56 am

How do you guys keep the formatting of the excerpt consistent with how the entire post is? My paragraphs aren’t starting on a new line - everything in the excerpt is all showing together, which doesn’t look right on various posts.

Thanks.

Joe
Comment » September 19, 2006 @ 4:19 am

Excellent plugin - did just what I needed! See it in action on our homepage at http://www.vibetechnology.com (it’s the box above the sidebar that functions as a landing pad / related posts / featured post area that switches for search engines / single posts / and “feature” category, respectively).

Thanks!

Chris
Comment » September 21, 2006 @ 2:41 pm

For those of you that had trouble got to line 70 and change div to span:

$more_link_text=”(more…)”, $force_more=true, $fakeit=1, $fix_tags=true, $no_more=false, $more_tag=’div‘,
to:
$more_link_text=”(more…)”, $force_more=true, $fakeit=1, $fix_tags=true, $no_more=false, $more_tag=’span‘,

The more link now displays inline at the end of the post and NOT on a seperate line. This worked for me anyway.

kapishi
Comment » October 12, 2006 @ 5:15 pm

Hello….how can I have the “more link” to appear in the same line as the excerpt. I think there is a line break somewhere. Thanks!

tb
Comment » October 15, 2006 @ 5:01 pm

I am running latest wordpress, when I activate this plugin it works ok on index page but when I try to goto admin page I get blank page then I have to rename the file to get in.
anybody has any idea what am I doing worng here?

akurashy
Comment » October 19, 2006 @ 12:54 am

hmm… i need a bit of help and i’m all set
I want to do something like

“Continue Reading the_title()”

i have this
‘, ‘content’, use_more_link, ‘Continue Reading’, false, 1, TRUE); ?>

Dana
Comment » October 20, 2006 @ 1:08 pm

This does exactly what I hoped it would do! Thank you so much for making this plugin.

Controllo web
Comment » October 20, 2006 @ 4:01 pm

Hi, is there any way to specify the title tag of the “read more link”?
I have not seen any parameter to set this. Foget me if I am wrong and
many thanks for the plugin!!!

Stuart
Comment » October 22, 2006 @ 1:45 pm

Im having the same problem as a few other people, cant get paragraphing to work. Does anybody know whats wrong here?

Peter
Comment » October 30, 2006 @ 10:14 am

Dear Kaf Oseo, now I have WP 2.04. Thanks for the wonderful plugin! Anyway, nice work ;)

entee
Comment » November 11, 2006 @ 2:15 pm

Nice plugin.
For all those baffled with the paragraphs not showing up, try adding the filter_type parameter to ‘content’. That worked for me, since we needed the excerpt to be taken from the content.

James
Comment » November 12, 2006 @ 6:15 am

@ Entee or anyone else who knows

Would you care to elaborate entee - where have you added the filter-type parameter exactly?

Or if anyone knows how to sort out the problem of the ‘p’ tag not working it would be much appreciated.

Very nice plugin Kaf - but then, they always are :)

Thanks

Rod
Comment » November 14, 2006 @ 5:31 am

I have ALL TRIED … but don’t see where is the solution : How to use your excellent script to have only … the pic of the article (and whynot, the clickable title of the post) …

Baba007
Comment » November 22, 2006 @ 8:35 am

If a post already has the ‘more’ link in it the plugin displays the original excerpt, no matter the filters and parameters i apply to it … can this be fixed somehow ???? (my original excerpts have 120 words and i need only 35 words excepts in the sidebar … )

chicken
Comment » November 26, 2006 @ 12:25 am

thanks the plugin seems to be working
the only question is

WHY IS THIS A PLUGIN AND NOT PART OF THE MAIN AP

i mean isnt it reasonable that people want
an image in the excerpt to make the page look nice
or maybe they want to control the size of the excerpt

Maybe Google will buy you out and make it part of the ap
hehe

Thanks I really didnt want to edit the source to get
an image working

you helped me a lot

Jeffrey Warren
Comment » November 29, 2006 @ 2:07 pm

Hi, love your plugin. I believe I found a bug on line 119, not sure. Should the conditional “!= $allowed_tags” read “!= $allowedtags”, without the underscore?

if(’all’ != $allowed_tags) {
$output = strip_tags($output, $allowedtags);
}

This was causing me some trouble.

Robert Kampczyk
Comment » December 1, 2006 @ 12:51 pm

This PlugIn was that, what I searched. Very Good!!! I love it.

Robin
Comment » December 3, 2006 @ 8:16 am

Hi,
I’m just trying to figure how to use your plugin so that when a category is selected, the first page viewed is simply a listing of the posts stored under it with a summary. I don’t want the fefault view of posts to be summaries, though maybe that’s the choice I’ve got?

I’m sure such a thing is possible but how?

Robin

Jim
Comment » December 5, 2006 @ 12:05 pm

I am new to this plugin and was having problems getting bits to work i.e. allowedtags=’all’ and decided to have a closer look and here I present my fixes. Sorry if others have already spotted these but I could not find them anywhere.

allowedtags=’all’ does not work as there is a coding error the lin