Delicious is the most popular social bookmarking service. If you pay attention on WDB, then you may notice that most of WDB’s articles are being saved more than 100 times by Delicious users.
There are a lot of ways for you to display your Delicious saved counts. But today we are going to show you how to use Delicious API together with Wordpress custom field to save and display the Delicious saved counts.
What you need to know before start writing the code?
- MD5 – You need the URL’s Md5 hash value in order to lookup its Delicious saved counts. You can read more by reading the PHP md5() function.
- serialize() and unserialize(). We will need to serialize the data before storing to the database, and then unserialize them after retrieve from database.
- Custom field. We use the custom field to store the Delicious saved counts to the database. By saving the Delicious saved counts to the database, we can reduce the number of calls to Delicious’s API and also drastically speed up your post loading speed. Imagine, if you have 1k visitors per hour, then you will have 1000 requests sent to Delicious per hour. So, we have to save the counts in our database in order to reduce our server load too.