Wordpress plugin ReadMore 0.8 RC1

10/05/2006 17:04 | Wordpress | 4 replies | 4599 views | RSS

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.

  1. On 22 May 2006 at 19h05, Dakid wrote

    :)

  2. On 6 June 2006 at 17h45, Aca wrote

    nice plugin…

  3. On 28 August 2006 at 08h54, anonymous wrote

    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

  4. On 28 August 2006 at 10h26, Selder wrote

    Oh! Didn’t test it with Wordpress above version 2 … I’ll take a look at it this night!