PHP
Hierarchical Permalinks based on a relationship between 2 custom Post Types
I recently was working on a project where I had two custom Post Types with a parent/child relationship between them. Here’s an example: Custom Post Type “Brand” where values such as “Apple” or “Samsung” could be saved. Custom Post Type “Product” where values such as “iPhone or “Galaxy” could be saved. I used the plugin Types Toolset to […]
WordPress Shortcode for embedding multiple YouTube videos using the JavaScript API and including custom Google Analytics Events
Well, that title is a mouthful, let me explain. Recently I had the need to create a shortcode to embed YouTube videos, no problem right? Well, lets introduce a few more variables. First we want to fire custom Google Analytics events on video play, pause and complete which is easy enough to work into the […]
Mobile Image Upload Orientation
Working on a responsive website which had image upload functionality I came across some issues with mobile image uploads. When images were uploaded to the website from a mobile device’s camera roll they would often be incorrectly oriented, turned sideways, upside down, etc. After a little research I found out this is due to EXIF […]