Category: Tips
WordPress – Display Random Posts
So you want to display a random list of posts, maybe in a sidebar widget… One way to do it is to use the query_posts() function, but this isn’t always the best…
Multiple WordPress Queries – Duplicates
You’ve got 2,3,4… custom post queries on a page and you need to get some control over duplicates – it looks unprofessional if your theme keeps showing the same stuff. Let’s take the example of displaying separately posts from 2 different categories – but if a post is in both categories, not duplicated across the [...]
WordPress Custom Category Archives
Note, we’re talking here about different category archive pages – not having a post page customised according to the category that post is in…. There’s 2 ways of doing this – first, the simple way, for more minor changes to the overall theme template, you can use the is_category function:
WordPress Themes and CSS Rounded Corners
The efficient method of producing rounded corners on a block element is to use CSS. All 4 corners: -moz-border-radius: 3px; -khtml-border-radius: 3px; -webkit-border-radius: 3px; Applying to, respectively, Gecko browsers (Firefox) – Konqueror – Webkit browsers (Safari, Chrome).
WordPress and Gumblar – a significant problem
You’ve got a problem – all your WordPress pages show an error message something like this Fatal error: Cannot redeclare xfm() (previously declared in /path/to/site/index.php(1) : eval()’d code:1) in /xxx/yyy/site/wp-config.php(1) : eval()’d code on line 1 the eval()’d code is the significant part. So you have a look – and you’ve got a whole heap [...]
WordPress Themes and Tables, Shock, Horror
Having recently been taken to task by a punter who berates our poor suffering HTML designer for daring to use tables in some of our WordPress themes, maybe best not to say which ones… There does seem to be an attitude that tables = evil, without even stopping to think. Our correspondent has missed the [...]
WordPress Themes Security
Time, perhaps, to renew the regular warning about obfuscated theme code – if you’ve just come to self-hosted WordPress, it’s worth being aware of what tricks can go on in this area. Be cautious when and if you’re going download a WordPress theme from a third-party repository, gallery, call ‘em whatever. Not all sites do [...]
WordPress Theme Functions
1. Conditional functions To begin at the beginning, we’re talking about is_home(), is_search() etc. The whole collection of functions is here – and the majority are handled in a very similar way. This family of conditional functions is related to the template file hierarchy – and since their use can save a lot of time [...]
WordPress RSS Functions
So you want to get a RSS feed and echo it to a WordPress page or sidebar – you’ve already got the RSS sidebar widget feature, but what if you want a little more control over what’s coming out? New in WordPress 2.8 is the fetch_feed() function – as the name suggests, a means of [...]

