Tim TrottTim TrottWelcome to my life


This category contains tutorials and code snippets for Wordpress and include theme and plugin creating, widgets and other code snippets to customise or enhance the Wordpress platform.

WordPress Get the Excerpt Outside the Loop
The WordPress template tag the_excerpt and get_the_excerpt is great for showing a short summary about a post, in fact this paragraph is the excerpt for this post. Unfortunately you cannot use get_the_excerpt outside "the loop". This is a similar function that can be used anywhere in your theme or template.
How to Determine Paged Comments in WordPress 2.7
Wordpress 2.7 introduced paged comments out the box, however you will probably be wanting to prevent search engines from indexing these pages to prevent duplicate content. You may also just wish to determine if a user is viewing a paged comments.
Talk does not cook riceChinese Proverb
Creating Links to Posts and Categories in WordPress
We all know that it is good to have links posts and categories throughout you site, but maintaining hard coded links can be a pain, especially when things like permalink structure or domain name change. These two functions will allow you to create flexible dynamic links in your posts or pages.
Useful WordPress Category Functions
This is a collection of extremely useful functions for working with Wordpress categories. Get parent category, and detect if current category is a sub category or child category of the specified.
Custom Gravatars in WordPress
A quick tip for customising the default gravatars in Wordpress 2.7 now they took away the get_avatar function. Use this filter instead; it's a much better way!
Installing WordPress
Wordpress is famous for its 5 minute install, but for those who have never installed web software before, I will show you how to download, install, configure and write your first Wordpress blog on your web server. You do not need any knowledge of PHP or any other programming language.
10 Essential WordPress Plugins
A list of my top 10 essential wordpress plugins, covering SEO, statistics, design, widgets and usability. These plugins are used on all my blogs and websites and are highly recommended.