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...

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...

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...

Self Employment Adventures

There are a number of things I wish I could've know when I was starting out my career as a freelancer. I'm going to write a few short blog entries here to try and pass on some tips and encouragement to anyone who may be early on in their self employment adventure so...

Advanced ACF Relationship Query

So the problem with this was solved, but it became even trickier. So what I wanted to add was a custom Taxonomy to be displayed for each item, as well as filtering by a custom field value. So the first problem was getting the custom taxonomy to relate to the custom...

ACF Relationship Query

So this was a tricky one to wrap my head around, just because the logic makes sense, but is difficult to word. So basically what I wanted to do was create a new Custom Post Type, which would have a selection list of all the published posts for you to be able to select...

Custom post type orderby menu_order not working?

So this seems like it should be straight forward - you've created your custom post type within wordpress, but for some reason your template is totally ignoring your orderby commands. You try setting it to orderby=menu_type, or orderby=ID, but nothing seems to make a...