| User | Post |
|
|
|
Exactly. This plugin simply does what we all expect the_excerpt to do.
|
|
|
14:04 16. April 2008
| Lazarus
Guest
| | | |
|
| |
|
|
Hello MO,
Thank you so much for the offer. Actually, I continued to work on the problem exploring “the-excerpt-reloaded” plugin and have great success to report. Not only was I able to get the “read more” text to show (in spite of having no permalinks), but excerpt-reloaded has some great additional features that make formatting very easy. I'm sure you already know, but I'll provide some detail for those who follow. I simply replaced these references in index.php and ui.tabs.php:
<?php the_content_rss('', TRUE, '', 20); ?>
with this: <?php the_excerpt_reloaded(25,'<img>','content_rss',TRUE,'Read More',FALSE,1,TRUE); ?>
Basically the parameters I set are [25 words, allow image tags, allow rss content, display "more" link, use "Read More" as the text, use content as the excerpt, and repair html tag elements]. The result is that the-excerpt-reloaded replaces “[...]” with “…” and then adds the text you specify, as noted above while preserving the text and formating. At least with these settings, it did for me.
Even better however, is the fact that this plugin has a <div> wrapper built in so you can format the “Read More” text almost any way you like by adding an appropriate declaration to style.css. Here's what I added to my style.css:
.more-link { text-align: right; }
Nothing too fancy, just moved “Read More” to justify on the right-side.
And that's it.
Here is a link to The-Excerpt-Reloaded where people can learn more and download the plugin:
http://guff.szub.net/2005/02/26/the_excerpt-reloaded
Hope this helps someone,
Lazaru
|
|
|
|
|
Send me your index.php by email and tell me where exactly you want the more link to appear (best would be to get a screenshot)
|
|
|
10:20 16. April 2008
| Lazarus
Guest
| | | |
|
| |
|
|
JP or MO..
I also would like to do this. I can locate the section in index.php, but I do not have a permalink listed to use for the link reference. Of course, I tried anyway and you're right, I get the “read more” text, and an active link, but of course without a permalink the resulting page has no content. Does anyone know why my index.php does not have permalinks listed like yours does? I rechecked the original index.php from the zip and it is the same, so I downloaded it that way, I guess. Any help?
Thanks,
Lazaru
|
|
|
20:48 15. April 2008
| JumpingPet
Guest
| | | |
|
| |
|
|
@Gary
Hi Gary, to add the links in category section, please look how to add it in the archieve.php in my earlier post. I think that's the way I do it, but I'll check it again in my code in case I forgot something.
@Michael
Hi Michael, it's just a luck I'm not familiar with coding and I have destroy a theme more often than fixing or improve it heheh… but I appreciate your offer, thanks
|
|
|
|
|
Eric said:
Solution: in wp-includes folder change formatting.php on line 821 from […] to whatever you want.
…But be aware of the fact that this will be removed when updating your WP installation.
Thanks to jumping pet for the detailed explanation. Wanna become a moderator and save me some time
Info to all: Unfortunately “the_excerpt” doesn´t allow any parameters so you cannot tell it to use “read more” instead of “…”. You can also not influence the number of words. “the_content_rss” is a bit more flexible here. Check out the Codex for detailed information.
You can also use a plugin called “The Excerpt Reloaded” which gives quite good flexibilty.
|
|
|
20:43 14. April 2008
| Max
Guest
| | | |
|
| |
|
|
Eric, that worked!
But I also can't add “Read More” link to show up in all post when you click on category. Would appreciate very much if anyone can explain how to do it.
|
|
|
19:47 14. April 2008
| Eric
Guest
| | | |
|
| |
|
|
Solution: in wp-includes folder change formatting.php on line 821 from [...] to whatever you want.
|
|
|
19:37 14. April 2008
| Gary
Guest
| | | |
|
| |
|
|
Thanks so much for such a detailed explanation! How did you add “Read more” to the category archives: http://jumpingpet.com/category/eclectus-parrot
Very nice site by the way:)
Thanks again!
|
|
|
09:46 14. April 2008
| JumpingPet
Guest
| | | |
|
| |
|
|
Ok I got it
I. To add “read more” links in the homepage - in featured articles and category box, do the following steps:
1. Open: index.php
2. And search for this line: // title of the “featured articles” the_title(); ?></a> <p><?php the_content_rss('', TRUE, '', 20); ?></p><a href=”<?php the_permalink() ?>
3. and add this: <a href=”<?php the_permalink() ?>”>>> Click Here to Read More…</a>
4. Now search for this line: // this is where title of the article gets printed the_title(); ?></a><br /> <?php the_excerpt() ; ?>
5. and add this: <a href=”<?php the_permalink() ?>”>>> Click Here to Read More…</a>
II. To add the “read more” links to the Lead article box:
1. Open: ui.tabs.php
Search for: // title of the “featured articles” the_title(); ?></a> <p><?php the_content_rss('', TRUE, '', 20); ?></p>
2. Add this: <a href=”<?php the_permalink() ?>”>>> Click Here to Read More…</a>
If you also want to add the “read more” links in the category section, do this step:
I. open archive.php
Search for: <div class=”entry”> <?php the_excerpt() ?>
and again, add this right after those line: <a href=”<?php the_permalink() ?>”>>> Click Here to Read More…</a>
You can see the results in my site at: http://www.jumpingpet.com
But I still cannot find a way to erase the [...] , hope somebody can show the way.
Hope can be useful
Cheers, JP
|
|
|
08:28 14. April 2008
| JumpingPer
Guest
| | | |
|
| |
|
|
I would like to know about this issue as well, thanks to bring this up
|
|
|
22:10 12. April 2008
| Gary
Guest
| | | |
|
| |
|
|
I've spent entire day trying to change Change [...] to “Read More” link so when you see the category and list of posts each post has “Read more” link. Does anyone know how to do it.
Any advice is much appreciated!
|
|