How to add drop down categories to Automattic’s P2 Theme

You know I love P2. I always have, and I always will. It’s the perfect theme that turns my WordPress installation into a notebook site.

Many users – me included – have often wished for the addition of categories to P2, so that when you write a post, you can add it to the category from the front page, perhaps via a convenient drop down menu.

Here’s how to do it with P2 Version 1.5.1.

And if you don’t want to hack the code yourself, I’ve got a full working project on GitHub that’s ready to rock.

Read more

Introducing The P2 Header Ad Plugin

P2 Header Ad IconI always loved Automattic’s P2 theme: it’s one of the most innovative ideas for blogging I could find. I’m using it on several of my notebook websites, including this one. I’ve been tweaking P2 for quite some time, and one thing I wanted to do is display an advert inside the P2 header.

As you may know, P2 doesn’t like child themes very much, so I wrote a future proof solution as this handy plugin.

P2 Header Ad let’s you display an advert of your choice inside the header. And when the theme is updated, your advert stays in place. Neat, huh?

Read more

How to fix “ibtool failed with exit code 255”

I got this error message recently on a project that worked fine when I tried last (WordPress for iOS). The error didn’t make any sense, and no matter what I tried the app wouldn’t compile anymore, always stopping with the following error message: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ibtool failed with exit code 255 I can imagine Xcode gets confused […]

How to centre an image in CSS

Centering text in CSS is relatively easy. All you do is add the “text-aling: center” property. If you’ve ever tried this with anything that isn’t text you’ll have noticed that this approach doesn’t work. Instead, display your class as a block, then set the margins to auto. You also need to specify a width so … Read more

Introducing Zen Dash

zen-treeIt is my pleasure to share with you my latest WordPress Plugin: Zen Dash. It allows you to selectively hide those Dashboard Widgets, Menu Items, Update Notifications and even Footer Links.

Inspired by Joseph Lowery and my recent post about how to do this in code, I wanted to create the same functionality without users having to use code.

After a few days of coding I really got into it and added several other features, including some nice jQuery UI tabs.

Read more

Disk Space Pie Chart – Version 0.5 released

I’ve just released a small update for my Disk Space Pie Chart plugin for WordPress. The new version addresses the following minor issues: Fixed Division by Zero bug (Thanks, Jure!) Tweaked some colours to better blend with WordPress Core Added MySQL Server Version The update was inspired by Jure di Mephit who very kindly gave … Read more