How to write a WordPress Twitter Widget – Part 2 of 3
Welcome back! So you should have read through part one of the tutorial, where we left things off with the following line of code:
$result = $t -> userTimeline($id=false, $count = ($options[’tweets’] * 4), $since = false);
(If that looks strange, make sure you check out part 1 of this tutorial!)
We now have our Tweets stored in [...]
How to write a WordPress Twitter Widget – Part 1 of 3
So you may have noticed in the sidebar over there on the right there’s a bunch of my recent Tweets. There are plenty of WordPress Twitter widgets, some better than others, but why not start and write your own? In this three part tutorial we’ll look at putting together the basic code, and then in [...]
How to create a WordPress Widget – Part 2 of 3
Let’s recap. So far we have the following code:
< ?php
/*
Plugin Name: A Simple Wordpress Widget Tutorial
Plugin URI: http://www.richardshepherd.com
Description: Simple Widget Tutorial from RichardShepherd.com
Author: Richard Shepherd
Version: v1.0
Author URI: http://www.richardshepherd.com
*/
function widget_widgetTutorial($args) {
// First we grab the Wordpress theme args, which we
// use to display the widget
extract($args);
// Now we sniff around to see if there are
// any preset [...]
How to create a WordPress Widget – Part 1 of 3
So how do you put together your own WordPress widget? All you need is to know your way around PHP. If you can program your application in PHP the chances are it can be turned into a Widget.
I’m first going to go through the structure of a Widget, and then we’re going to get our [...]
phpFlickr Widget
You may have noticed a new widget in the sidebar called the phpFlickr Widget.
It’s a widget I have developed for WordPress which allows you to include your Flickr photos in your blog, and display them with the rather funky Slimbox tool. Click on one of the photos and see what I mean. Slimbox, as well [...]
php Image Rotator :: Making sense of the code
So let’s look at an image rotator that comes bundled with this WordPress theme. It’s actually coded by the founding WordPress developer and Internet ubergeek Matt Mullenweg (whose funky website is accompanied by a funky URL: http://ma.tt). The full code for the rotator is here, but I wanted to work my head around a couple [...]
Rollognese
I was ridiculed yesterday for taking my leftover bolognese sauce and popping it in two wholemeal bread rolls. I call it “Rollognese”.
I didn’t invent this delicacy, and nor do I see what’s wrong with it. Admittedly it is a little sloppy to eat, but that’s half the fun.
In other news, some great PHP tips for [...]
All Change, please. All Change.
So, we’re back. It’s been almost a year but it’s time to get this show on the road once more.
What can we expect from RichardShepherd.com? More and more updates, correctly categorised and tagged for your viewing pleasure. See that bunch of random words in the top right corner? Well, as I add more and more [...]





