Colorful Source Code Images
Inspired by the many colorful, Carbon-generated images of source code, I sat down and created Source Snap, a pure PHP Featured Image generator in WordPress plugin form. Continue reading Colorful Source Code Images →
Inspired by the many colorful, Carbon-generated images of source code, I sat down and created Source Snap, a pure PHP Featured Image generator in WordPress plugin form. Continue reading Colorful Source Code Images →
Corcel is a Laravel package that greatly simplifies pulling data from a WordPress database. Using it feels somewhat like—and at the same time completely different from—using WP_Query. One thing I—a rather inexperienced Laravel user—struggled a bit with, though, is fetching posts by Post Format. Here’s how it’s done. Continue reading WordPress Post Formats in Corcel →
What if you wanted to use Jetpack’s social menu feature and add links to your Mastodon and Pixelfed profiles—platforms Jetpack’s social menu doesn’t currently support—and not have them accompanied by an ugly, generic anchor icon? Continue reading Extend Jetpack’s SVG Icons →
Create better URLs for (existing) custom taxonomies, and work around clashing URL rewrite rules. Continue reading Rewrite Jetpack’s Custom Taxonomies →
A few tweaks make a lot of sense when running WordPress headlessly. E.g., without an actual WordPress front end, one may as well get rid of post and page previews. Continue reading Headless WordPress Tweaks →
I’d normally tweak the WooCommerce Product Categories widget—e.g., exclude certain categories—using the ‘woocommerce_product_categories_widget_args’ filter hook. If I want to add something to that list, however, like a link to the top-level shop page, I’ll have to find another way. Continue reading Filter the WooCommerce Product Categories Widget →
Editing WordPress pages, I often float images left or right so that text flows nicely around them. Sometimes, though, I—or my less tech-savvy clients—want the next paragraph to start below the floated image, also if that image happens to be ‘too tall.’ Here’s two possible solutions. Continue reading Clear Floats in WordPress →
Easily disable (or enable) WooCommerce payment methods for a certain payment method, product category or shipping method. Continue reading Conditionally Disable a WooCommerce Payment Method →
On (workarounds for) installing Valet for Linux and the rest of my development environment: PHP 7.2, Composer, MySQL, and WP-CLI, on top of a clean Xubuntu image. Continue reading My WordPress Development Environment →
I recently put together a custom WooCommerce Payment Gateway that relies on quite a few external API calls, all of which—however unlikely—could possibly fail. If that was to happen, I asked myself, should I then mark the order ‘On-hold’, ‘Failed’, or simply leave it ‘Pending’? Continue reading WooCommerce Order Status Choices →
Long story short, I decided to try and create my own ‘Lightbox for WordPress’ implementation. After all, how hard can it be to load a few scripts and make sure everything’s properly initialized? Continue reading Lightbox for WordPress →
Did you know you’re able to install the WordPress command line interface on your shared host—provided you’ve got SSH access? Continue reading WP-CLI on Shared Hosting →
The combination of WP Super Cache’s expert mode and its preloading function really speeds up WordPress page loads. Avoiding WP Cron calls on random page loads by setting up a real Linux cron job isn’t hard and again helps save some actual visitors a little extra time. Continue reading Speed Up WordPress Using Page Caching and Cron →
For quite some time now, ThemeShaper—now part of Automattic—has been my reference of all things WordPress themes. I’ve built a number of child themes on top of their themes and will likely continue to do so. All these themes are based on the Underscores starter theme, by the way, making them all very similar to code against. Love a limited learning curve when deadlines are tight! Continue reading ThemeShaper →
Unless your WordPress site’s running a multitude of ‘premium’ plugins, WP-CLI and a simple cron job will do a great job keeping everything up-to-date. Continue reading Automatically Update WordPress Plugins →