Headless WordPress + Gatsby + Netlify continuous deployment

What is this? TL;DR WordPress as a CMS. Front end built with Gatsby. Deployment to Netlify on post publish or update. Support for staging and production environments. Why WordPress + Gatsby + Netlify? Gatsby has a great community that is seemingly getting stronger. Server Side Rendering out of the box. GraphQL out of the box. […]

Look Ma, No JavaScript Framework OR jQuery

Yes, it’s not only possible, it’s a damn good idea and one of the best engineering decisions you can make. Always? Of course not. JavaScript frameworks make a lot of sense in a lot of situations and I quite like using them. jQuery too, has it’s place. Horses for courses. But seriously… Today’s “course” is my very own […]

WP Tel Links WordPress Plugin

Finds all telephone numbers and replaces them with click-2-call tel links. No set up required. On the web WordPress Plugin Repository GitHub Installation Upload stripe-card-reminder.php to the /wp-content/plugins/ directory Activate the plugin through the ‘Plugins’ menu in WordPress Congrats. You are done! FAQS How does it work? The plugin loads a javascript file that parses […]

Stripe credit card expiration reminder WordPress plugin

Card Expiration Reminder for Stripe runs a customizable report and notifies Stripe subscription customers of credit cards that expire soon. Customizable date range and email settings. Notify your customers before their card is declined and have them update their payment method in ‘/my-account/’ Sick of cards getting declined expiration? Yep, me too. Happens frequently to […]

Uncaught Error: Syntax error, unrecognized expression: a[href*=#]

WordPress was nice enough to release “Coleman” on my birthday. That’s April 12th for those of you who don’t know my personally. Theres’ a number of under the hood and user-interface improvements but there was also a slew of library updates that cause me and likely many others a few more headaches after upgrading the […]

Strava API as WordPress Plugin

I recently had a project that involved the Strava API which was super fun as it was awesome subject matter and I especially like working with Javascript; Especially maps. Sadly I can’t link to the project due to an unfortunate NDA. I can say I learned quite a bit about the Strava API. While not as robust […]

Get posts in the future with advanced custom fields date picker

Perhaps you have an events custom post type registered with WordPress. Perhaps you are using the date field for Advanced Custom Fields. I’d wager a guess you want to get all the events that have a date greater than (in the future) the current date. Who cares about past events?   Or paged:

WP Minimum Image Upload Size

WordPress Plugin that validates images. Configure minimum image upload size on the settings page for post types and custom fields. Current Version: 0.1.0 Github Page: About WordPress’ add_image_size() function is great. There is however, one problem. Take, for instance, the following function. Just like that WordPress will process and save an additional image  1500 x 800 to […]

To perform the requested action, WordPress needs to access your web server.

But wait a minute I’m WordPress is running locally. Perhaps on MAMP? What is it? According to (Primary Preference) “direct” forces it to use Direct File I/O requests from within PHP, this is fraught with opening up security issues on poorly configured hosts, This is chosen automatically when appropriate. Here’s the code:

Default Twitter Bootstrap CSS Media Queries

[css] @media(max-width:767px){} @media(min-width:768px){} @media(min-width:992px){} @media(min-width:1200px){} [/css] If you’re using SASS or LESS. [css] @media(max-width: @screen-xs-max){} @media(min-width: @screen-sm-min){} /* deprecated: @screen-tablet, or @screen-sm */ @media(min-width: @screen-md-min){} /* deprecated: @screen-desktop, or @screen-md */ @media(min-width: @screen-lg-min){} /* deprecated: @screen-lg-desktop, or @screen-lg * [/css]