In this tutorial, I will show you how to integrate the Youtube Iframe API with the WordPress Shortcode API to create a shortcode which is able to display a Youtube video anywhere in your WordPress theme. In the snippet below you will see a working example of the [youtube] shortcode which provides support for passing […]
I recently had a page template that needed to be set as the default page template INSTEAD OF the “Default Template” I dig some digging and found a solution that works exactly as expected. Here is how to change which WordPress page template is set as default template. Make sure to update “post” to “page” […]
By default, the genesis entry header is going to output inside the content but what if we wanted to move it outside of this location. For example, we may want to make the title section of the page full width with a background that extends to the edge of the screen on both sides. If […]
I had a recent request for the ability to order sermon terms by the start date of the sermon series. In this tutorial I will show you how to order get_terms() based on a custom field. In this case, I’m using an Advanced Custom Fields Date field for the date and assigned it. The short version of […]
I’m working on a project where we created a custom registration form with Gravity Forms with a custom user role assigned when they registered. As a result, I needed a way to redirect all users who might happen to stumble across the default WordPress registration page / url and redirect them to my new Registration page […]
Need a simple way to add content after a certain amount of paragraphs? Check this snippet out!
Need a simple way to add content to a post or page after a certain amount of characters or words? Check this snippet out!
A while back I was having a conflict between the WooCommerce Product Bundles plugin and the Click & Pledge payment gateway. The issue was that they were not supporting passing in the correct, updated price based on the bundle product settings and said that they would not be supporting the feature at the time. Good […]
A client with a WooCommerce shop recently asked if there was a way to add a coupon code to the cart automatically based on the cart total. The client had three specific coupons they wanted to work with. 10% – if total was $400 or more 15% – if total was $600 or more 20% […]
A quick way to show images and iframe video in a Magnific Popup Gallery.