Over on the Yoast SEO Blog there is a great post on How to Improve WordPress Search. It is definitely worth a read (I can wait if you want to read it right now). I’m a big fan of the Genesis framework (see Why I Use the Genesis Framework) and implementing some of these changes […]
Solution
WordPress sanitize_title() in JavaScript
Update While this article details my exploration in recreating the WordPress sanitize_title() behavior in JavaScript, since it was originally written WordPress core has added cleanForSlug(), which is part of the npm package @wordpress/url. I recommend using cleanForSlug() over this code. I was working on a project where I needed the functionality provided by the WordPress […]
CMB2 Dependency with Composer
Here is the short answer for how I installed CMB2 as a dependency with Composer for my plugin.
Solving a Rubik’s Cube
I’m a big fan of the Rubik’s cube and the mystery surrounding them. I can remember messing up a Rubik’s Cube and then handing it off to my grandfather who would take it home, solve it, and return it to me a few days later. How to Solve a Rubik’s Cube There are a few […]
Test Credit Cards
The following is a reference I’ve created for myself for test credit card numbers when dealing with different payment Gateways. Note: These test numbers only work when the transactions are submitted in Stripe’s testmode (or to the sandbox for Authorize.net). More information on: Authorize.net sandbox Stripe Test Mode Authorize.net Test Card Brand Number American Express […]
Why I Don’t Provide Support via Email
You’re probably reading this email because you contacted me with a support question regarding one of my open source projects. I’m glad to hear you are finding my project useful and I hope I can help you with your issue. However I don’t provide free support for these non-commercial projects via email. It is likely […]
WordPress PHPMailer Vulnerability
There is a vulnerability in the PHPMailer library that affects any version before the critical release of 5.2.18. This PHPMailer vulnerability has been publicly disclosed at legalhackers.com. The PHPMailer library version 5.2.14, a vulnerable version, is included in WordPress 4.7 (the latest version at the time of this writing). In other words, WordPress 4.7 and […]
Improve Git Log
By default the output of ‘git log’ is not nearly as useful as it could be. By creating a new command ‘git lg’ that uses some of the options available to ‘git log’, we create a much more useful command.
Remove Paint Scrape from Car
Unfortunately, recently our garage was a little too narrow when pulling the car into it. The side panel scraped the wall and some of the paint scraped off the wall and transferred onto the car. Before Equipment WD-40 Paper Towels Magic Eraser Rag Soapy Water Car Wax & Towel Instructions Step 1: Remove the Paint […]
Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings
You’ve probably arrived on this page because you updated to WordPress 4.6 and now all of the backend pages (those in /wp-admin) are showing an error similar to the following. Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /srv/www/genesis/htdocs/wp-content/themes/genesis/lib/admin/menu.php on line 122 and […]