WP Disable links with an Empty href

After much searching and fiddling I finally found a solution to this problem... Basically I have a site where some top level items in the main menu are purely for categorization; they don't have actual pages to link to. So how do we prevent them from linking? Well...

Smart WP redirects

So I was trying to figure out how to redirect from a category page in Wordpress to another page. It's not too hard. To do it manually I just used the following: function my_page_template_redirect() { if ( is_category( 'zero-emission-transport' ) ) { $url = site_url(...

Self-employment and tax

The tax man comes'a'knocking, every year. Relentless and uncaring. Kind of like the Groke. It's pretty boring but vital for every self-employed person to be somewhat aware of what's required and what's to come. I have just a few tips that took me a little while to...

Displaying WordPress childpages with thumbnails

Here's a little bit of code to display Wordpress Childpages in an undordered list including their thumbnail image....

Pagination with a custom wp_query

So I was using a fairly normal WP_query, along the lines of But for some reason pagination was not working, at all. I was trying to use and it was displaying nothing. After a bit of digging around I found out that I needed to tweak my WP_Query...

How to add an Admin user to a WordPress install via FTP

So I've decided to start using this blog as a place to store useful Wordpress tricks and things as I come across them and learn them. So this is a little snippet to allow you to add an Admin user to a Wordpress install even if you only have FTP access. Obviously I'd...

Christmas approaches

Yep, another year rears it's bizarre and blurry head. The past few months I've learnt a lot about jQuery development, and Wordpress tricks and techniques. Things are jumping forward. Soon I hope to share some of these things with you, in case anyone has hit the same...

The Sho Exhibition

Images from friday night's exhibition opening at The Sho Gallery and Shop. My friend Luke Hyde and myself did 5 paintings each, and painted mural on the night. The event was a big success and for a large part of it the place was so packed out you could barely move!...

Art Show!

I'm having my first gallery show with my Artist and animator friend Luke Hyde!!! The Opening night is Friday 24th February (7pm - 10pm), and Saturday 25th (midday - 5:30pm)! There will be live painting and stuff It is at The Sho Gallery, Cardiff Please come down on...

Artshow Robot

An illustration for part of Made In Roath, on display on the wall in the ally behind Milgi bar in Cardiff. It's a giant robot made up of scrap metal, tires, gas cans, an old computer. And he's sick - throwing up oil all over himself and stumbling through some rocky...

Dead Nyan Cat

My first piece of pixelart animation was of a dead nyancat, for candy the magic dinosaur and www.asittingduck.com. It was definitely a very fun experiment, and something I'd love to do more of. Watch this...

SJC Snare drum painting

So this is how the snare drum turned out with all the hardware attached and finished, ready for use. I am absolutely stoked to see it in it's finished form. Full kudos go out to Geo and everyone at SJC Drums for getting me involved in...