Show WordPress current version and latest version in admin footer

It can be a little annoying when there is a new version of WordPress available and you’re not sure what version your are currently running. Sometimes it’s worth waiting a while after a new major update to see if it brings bugs and it would be worth to know how far behind you are to … Continued

Calculate age from datepicker field in ACF

I have been building a member-based website recently for a client and needed to display the age on the profile page. I was using Advanced Custom Fields to build the profiles and used the datepicker field to set the date. To calculate this, use the snippet below to achieve what you need.   Note, I … Continued

Altering archive orderby or posts-per-page on custom post type

On a project recently, I was using a custom post type for locations. These consisted of places, cities and districts as a non-hierarchial cpt. Running the archive of the post type on a standard archive.php file naturally lists the posts in order of publish date – most recent displayed first.   The archive also took into … Continued

Removing Related Products from WooCommerce Single Product Page

Related products on a single product page in Woocommerce can be a great way to inform customers of other similar products in yout store. Sometimes however, you may need to remove them and here’s how. Adding this snippet to your functions.php file:

Image Zoom on hover with pure CSS

Here’s a short snippet for getting a nice fancy zoom when hovering over an image using purely CSS3. Here’s an example:   and here’s the code: You simply need to add the class ‘img-zoom’ to any image’s container to get the effect.   Feel free to play about with the values in the zoom to … Continued

Add new admin user in WordPress from PHPMyAdmin

Similar to another post which does the same thing in OpenCart, here’s how to add a new admin-level user to WordPress – without any access to the wp-admin area. I find this useful when I’m called in to finish off an abandoned website and have no idea what the login credentials are – I’ll simply … Continued

Register New Sidebars in WordPress

Today, I’ll show you how to register new sidebars in WordPress, which can be used to add new widgets areas for use across a website such as in custom page templates, footers and just about anywhere. It’s a 2 step process, so let’s get started on step 1. 1. Register the sidebar In either functions.php … Continued

Remove Related Videos From WordPress oEmbed Youtube Videos

If you’re embedding videos into WordPress, possibly as a post, you may sometimes want to add parameters to the code to overwrite the oEmbed default behaviour of WordPress. This can be achieved by creating your own plugin or adding this snippet to your functions.php file. This example removes the related videos at the end of … Continued