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

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

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

Displaying WordPress childpages with thumbnails

Here’s a little bit of code to display WordPress Childpages in an undordered list including their thumbnail image. <ul class="sub_pages"> <?php $args = array( 'post_parent' => $post->ID, 'post_type' => 'page', 'post_status' =>...

Pagination with a custom wp_query

So I was using a fairly normal WP_query, along the lines of <?php $query = new WP_Query (array(''posts_per_page=>'6','post_status'=>'published','orderby'=>'menu_order','order'=>'ASC','paged'=>'paged')); ?> But for some reason pagination was not...