Hierarchical Permalinks based on a relationship between 2 custom Post Types

Posted by on Apr 7, 2016 in Development, PHP | No Comments

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

Posted by on Mar 31, 2016 in Development, Javascript, PHP | No Comments

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

Posted by on Mar 4, 2014 in Development | No Comments

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 […]

One of the most undescriptive errors I have ever seen

Posted by on Sep 11, 2013 in Development | No Comments

While importing a large MySQL database through PHPMyAdmin on a MAMP local server during the process of migrating a website I received one of the least descriptive errors I have ever seen. The error is actually kind of funny to me, but it tells me absolutely nothing about what caused the error. #2006 – MySQL […]