I thought I would have a crack at creating my first WordPress widget / plugin; nothing spectacular, just a simple tweets widget that fetches your recent tweets via Twitter’s JSON API.
The plugin requires at least PHP 5: mainly because I can’t stand coding for PHP 4, but also because WordPress will be ditching PHP 4 come version 3.2. Hooray!
It has only been tested with WordPress 3.1, but it should work from as far back as version 2.7. Let me know if you have any issues.
Hope it comes in handy.
- Upload the plugin to the “/wp-content/plugins/” directory and unzip it.
- Activate the plugin through the “Plugins” menu in WordPress.
- Place the “DG-Tweets” widget inside one of your themes widget areas through the “Widgets” menu in WordPress.
- Replace the default widget details with your own.