Here is a plugin for wordpress using the latest version of the "show/hide" script (which lets you include other text inline, as well as opens up the doors to use the same function for comments) as seen here here. (Of course that post was written for MT)
Current Version: v. 1.4
Last Updated: 8/30/04 8:42 PM EST
See Bottom of post for changelog
Installation Instructions:
Step 1:
Download and "install" this plugin.
(ie. right-click and save that file with a .php extension. Then upload it to your plugins directory, which is located in your wordpress folder: wp-content/plugins)
Step 2: (optional)
I made that plugin for my own purposes with the text you see on this site. If you want the text to say something different – then you'll need to modify it.
(There was a step 3 – but it's not neccessary any more in ver 1.2 of this plugin)
Disclaimer: This is my first attempt to hack WP. The disclaimer in the sidebar VERY MUCH applies. I am NOT an expert. Especially when it comes to WP. So, go easy on me 😉
If you'd also like to do show/hide comments: see this post for ideas on how to edit your wp-comments and/or this post for a seperate file you can upload and use (wp-dropdown-comments.php)
An additional note I'll make here and on the show/hide more (comments) version:
Make sure you have the following in your template! (It's in the original WP index.php template, but if you're creating your own, you may have easily forgotten to include it) :
<?php wp_head(); ?>
That line would go in between your <HEAD> </HEAD> tags.
Change Log
new in ver 1.4
Bug fix for preview on edit post page (in the admin) thanks to Neil Stead
new in ver 1.3
Minor bug fixes thanks to Tormod
new in ver 1.2.2
Took Tormod's suggestions on code clean-up.
new in ver 1.2.1
echo was changed to return
priority added to add filter (thanks Kendra)
new in ver 1.2:
Added "add action" line (as suggested by Tormod) – so now you do not need to change your index template or any other plugins – use "the_content" as you normally would!