Currently Browsing: Mike Hancock


Adding a custom post type as a sub-menu of Posts

Here we set the “movies” post type to be included in the sub-menu under Posts. register_post_type( ‘movies’, array( ‘labels’ => array( ‘name’ => __( ‘Movies’ ), ‘singular_name’ => __( ‘Movie’ ) ), ‘public’ => true, ‘has_archive’ => true, ‘show_in_menu’ => ‘edit.php’ ) ); If you have a taxonomy registered to the custom post type it […]


Shopify: Coupon auto apply links

So sometimes you just want to link to your shopify store and have a coupon automatically apply from the link. I sent out about 800 unique coupons yesterday. I used Shopifys Bulk Discounts app (which is awesome) to generate 800 unique coupon codes with the same rules. The coupon codes it puts out are rather long […]


Make Your WordPress Theme Translatable

Today I made my Pets & Vets WordPress Theme Translatable. At first it seemed a little daunting, here is a quick guide.


Adding WordPress Admin Alerts

Some helpful snippets from an old article by Devin from WP Themeing. Click here


Editing the Host File on OSX

The hosts file is a text file that maps hostnames to IP addresses. Upon typing a url address on the browser, the system is checking if there is a relevant entry on the hosts file and gets the corresponding IP address, else it resolves the IP via the active connection’s DNS servers. The hosts file can […]


Brick: Webfonts

“In the age of the Internet, we’ve found ourselves in yet another typographic battle. In an effort to speed up loading times, we’ve compressed fonts, and along the way, we’ve lost the majority of the quality of rendered type. Let’s change that. The fonts served by Brick are clones of the original, converted without modification […]


Re-enabling Pets & Vets Slider for Mobiles

I wouldn’t recommend doing this for UX reasons, plus it has not been tested thoroughly… and I doubt anyone will want it.. But someone just asked me  how to do it, so here it is incase anyone else is after it… Copy the code below into Theme Options > Custom CSS [syntax type=”css”] .homehead { […]