General
*Note!* This page is about Witty Text, however WP Quotes is a more sophisticated plugin that uses stores the quotes in your SQL database, has a sexy interface for adding quotes and can do more overall.
This is probably the simplest WordPress plugin there is in existence. I could be wrong, of course. This simple plugin will fetch a random quote from a text file and display it pretty much anywhere on your WordPress site.
Installation Instructions
- Download and extract.
- Upload witty.php to /wp-content/plugins/ directory.
- Edit/insert your own quotes into witty.txt and upload it to /wp-content/. Every new line in witty.txt is a new quote … check the included file to see what it should look like. FYI, if you chmod 666 witty.txt after uploading it you will be able to edit it from within WP interface later. You can put witty.txt anywhere on your site, but you will have to edit plugin code accordingly.
- Enable the plugin.
- The plugin is called using: <?php witty(); ?>
Multiple Instances
Although the plugin doesn't support multiple quote files, this limitation is very easy to get around although it will require you to manually edit the plugin.
- Create a copy of the plugin w/ a slightly different name. For example, witty2.txt.
- Change the function name to witty2 or similar, so that it makes sense.
- Change the name of the text file it calls, witty2.txt seems like a good idea ...
- Voila, you now have a second text file of witty quotes you can call using a separate funtion. Activate the plugin, populate the file with infinite wizdom and you should be all set.
Adding multiple file support would be easy, but that would be overkill for this plugin in that case it would be better to use a SQL database, which was already done.
Download
WP WittyText
Older Versions
WP WittyText 1.0
Comments (0)
You don't have permission to comment on this page.