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