Post Quotes Plugin for WordPress
Quotations Plugin for WordPress with cURL
There are many Quotes Plugins for WordPress but I wanted to write one that will generate a quote for a post based on the category name in which the post exists. So, if you are blogging about excellent javascript scripts and your entry lives inside a “tools” category, I want to grab and display a quote based on the keyword “tools”. I’m not sure if something like this already exists, but it was really easy to create it, so here it is:
Once you install the plugin just paste this piece of code anywhere in single.php:
<?php catquotes(); ?>
Everything should work as long as your php supports cURL. It needs to support curl because I am actually grabbing an xml feed of quotations based on your category name and scraping the xml result so I can display it on the page. I use a similar technique on YeFind, try to click on the quote and you will get another one shown via an ajax request written in prototype. I hope someone likes this plugin, enjoy!
Popularity: 2%
If you enjoyed this post, please consider to leave a comment.












Comments
No comments yet.
Leave a comment