How to Create a Custom Post Types Archive Page in WordPress

If you want to show your custom post types on your category archive pages? Add this to your functions.php file: add_filter(‘pre_get_posts’, ‘query_post_type’); function query_post_type($query) { if(is_category() || is_tag()) { $post_type = get_query_var(‘post_type’); if($post_type) $post_type = $post_type; else $post_type = array(‘post’,’myCustomPostTymeName’); // replace myCustomPostTymeName to your custom post type $query->set(‘post_type’,$post_type); return $query; } } Now change […]

Z-index in IE whith drop down menus

One of Internet Explorer’s (IE) most commonly encountered bug is when using z-index. I experienced this recently when using a Slider plugin for WordPress along with a drop down navigation. Whilst doing some browser testing I noticed that the drop down menu hides behind the Slider. I tried to fix this using z-index. I applied […]

Set Custom Image Size

Function Reference/add image size Description Registers a new image size. This means that WordPress will create a copy of the post thumbnail with the specified dimensions when you upload a new thumbnail. Usage Parameters $name (string) (required) The new image size name. Default: None $width (int) (optional) The post thumbnail width in pixels. Default: 0 […]

The Tools of the (WordPress Freelance Development) Trade

I’ve been freelancing for a while now. I’ve also been developing WordPress sites for a while. In that time I’ve used many different tools. Some have been great, and some less great. Here I share a list of the tools that I’m currently using: Accounting I use the excellent FreeAgent* to keep track of my […]