MF Collapse 1.0

Being unsatisfied with what was available and having a few spare minutes on my hands, a couple of days ago I decided to work on a new Wordpress plugin: MF Collapse.

What it does is simply collapse the text after <!–more–> on the index page. You can see it working on my own website, actually you can see it working right here on this entry - but only if you’re reading this from the homepage: just click on the link below.

To use it, download the plugin, drop mf_collapse.php in your plugin folder ( wp-content/plugins ) and activate it from the Administration Panel.
Then, you have to change your template’s index.php file ( wp-content/themes/[theme-in-use]/index.php ) as follow:

  1. open the file in your editor of choice
  2. locate the_content - or the_excerpt
  3. change it to mfc_collapse()

If you want you can personalize the link’s text using two optional parameters: the first one for the “Read More” link and the second one for the “Hide Text” link.

If you need some help, feel free to contact me.

Download MF Collapse.

This post was written 3 years, 1 month ago on June 3rd, 2005 mid-afternoon.

Change color scheme

Recently

Best of 2007

As usual, here’s my Best of… for 2007. Best Books This list includes books I’ve read this year, which weren’t necessarily released in 2007. Gomorrah by Roberto Saviano La..

Future of music

In the past few years, I realized how difficult it is to find new talented artist through mainstream media, and that was probably the main reason I started loosing interest in music, which had been a..

Alexa Certified Traffic Ranking for finotto.org