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.
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.
1st public version. Only tested on a default Wordpress 2.0.2 installation.
- Include options for the “read more” text.
- Include CSS behaviour.