Archive for March 2010
10 WordPress query_posts tips you probably don’t know
I have written a really brief query_post tutorial before, and it did quite well, but both WordPress and my own skills, have advanced considerably since then. So I thought it would be interesting to revisit the query_posts command and see what has changed.
The query_posts command is one of the most useful in all of WordPress. It is this command that allows all the content to be queried (extracted ...
Toy Story 1, 2 and 3
I'll be honest - I'm posting this because I was sent free copies of the recently re-released Toy Story 1 and 2 movies (Blu-Ray and DVD of both films). I was very close to turning it down - I don't like to advertise too much on here - but it's the Toy Story films... 2 of the best examples of animated story telling ever.
The discs themselves have everything and more that you could ...
Realigning James Woodcock dot com
Recently I was talking to my friend, and fellow blogger James Woodcock, about his website and somehow I ended up suggesting I spend an hour or so tidying it up.
James is a video game and tech journalist... and an endless tinkerer. He loves messing around with his website - adding new content and improving the functionality. Unfortunately lots of additions has meant things got a little confused and somewhere along the way things became a little untidy and
Quick and Easy Popular Posts for Your WordPress Blog – in Only 1 Line of Code
Adding a list of popular posts to your website is a great way to increase user engagement on your site. It shows your readers what people are reading and interacting with the most - which in turn should encourage people to browse around your website more.
There are lots of posts across the blogosphere describing how to do this. Some look at the number of comments, and others track the page views, ...
Prince of Persia – Sands of Time Trailer
Another film I am looking forward to. A lot.
The Prince of Persia, Sands of Time, is an awesome video game. The beauty and simplicity of the game makes it a joy both to watch and to play. It's one of the few series where I have played and completed every single one of the games - so naturally I am interested in the new film.
Using the Yahoo Weather API (in your WordPress themes)
When developing our Hyperlocal WordPress theme called The Local Darren came up with the idea of adding the local weather to the themes header. After a bit of research I decided that the Yahoo! Weather api was the best solution.
Before writing the code I Googled around to find something that would speed up development but all the solutions I found were overly complicated and cumbersome. I wanted some small fast code - so decided to write my own.
WordPress Http – Read Content From Other Websites
Recently I have been doing a lot of work with API's and these often involve loading text content (rss/ xml/ json etc) from another website and then displaying the results - for instance the Twitter feed at the bottom of this website uses the Twitter Search API to get my latest updates.
There are all sorts of ways to access this data, but different servers require different methods so it's good to ...
How to Use Akismet in your Plugin or Theme to Stop Spam Dead
So far I think I have been rather lucky, there hasn't been much spam on WPVote, and that's great. But I know these types of sites can be a haven for spammers, so I have used a few different tricks to stop the spam in its tracks. One of those is adding Akismet support.
The function below is something you can add to your plugin without any customisation. The code is only really useful in certain situations but I ...
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | Apr » | |||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||