Wordpress plugin ReadMore 0.8 RC1
I’ve made my first plugin for Wordpress, readmore 0.8 RC1. (download – 1KB rar)
What does this do?
When you let Wordpress itself create an excerpt for a post, it cuts of the post’ text, and adds “[...]” at the end.
This plugin replaces that “[...]” with “…”, and adds a “read more” link to the excerpt, whichs points to the permalink of the post.
Installation
Extract php file from archive to /wp-content/plugins and activate via Administration panel. No additional coding is necessary.
How does it work?
This plugin catches the content of “get_excerpt()” and checks it at position 336 for “…”. When it finds those characters there, it removes them and adds a “read more” link on a new line.
Notes
1st public version. Only tested on a default Wordpress 2.0.2 installation.
Future
- Include options for the “read more” text.
- Include CSS behaviour.
:)
nice plugin…
I have tried this one on Wordpress 2.0.4 and it gives me this error:
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/plugins/readmore.php:33) in /wp-includes/pluggable-functions.php on line 272
Oh! Didn’t test it with Wordpress above version 2 … I’ll take a look at it this night!