Link Category: Tutorials
How to Convert A WordPress Shortcode To A Gutenberg Block
Our friend Josh Pollock recently published a guide which I wish I’d written (and which I may yet, because it’s a good idea, and I’m sure going to be growingly-common question). It’s about how to go from a shortcode, which is that [square-bracketed] things of the past, to the Gutenberg-y thing of the future: blocks!
How WordPress Knows What Page You’re On
This post about how WordPress works with URL from Ryan McCue has almost everything I love in such things:
How to Customize File Upload Inputs
This code demo saved my bacon on a client project that needed a very specifically styled file upload input box.
Two ways to build Gutenberg Blocks
Our friend Jason Bahl has put together one of the most quietly exhaustive tutorials I’ve seen on what it’s like to actually make a “Gutenblock” with all the code bits and where all of them go. One of my biggest uncertainties about Gutenberg is how many WordPress developers will need to be creating Gutenberg block and how easy they will find it. All of that points to the fact that regardless of how it turns out we’ll need a lot of different good tutorials about making Gutenblocks and the subtleties of that process.
Getting Black Friday right for WordPress products
Black Friday is a great opportunity for WordPress products, but offering a straight discount isn’t necessarily the best way to go: you need to balance existing customers, price-sensitive potential customers, and deal-searchers, and a straight discount leaves at least one of those groups dissatisfied.
Finer Points of Text Domain in WordPress Internationalization
This article from Pascal Birchler about text domain in plugins got into some territory I’d not considered. I shouldn’t be surprised, Pascal is very smart, a regular contributor to WordPress itself.
How to Change WordPress User Passwords via FTP
A member from the WPShout Facebook Group blew my mind last week with this set of instructions for either resetting WordPress user passwords or adding new users using only an FTP connection. This was in response to our Quick Guide that describes how to do the same thing inside phpMyAdmin, which requires cPanel (or similar) access. For many situations, I believe this FTP route is quite a bit simpler and requires requesting less complete access from your clients.
Find the WordPress Database Options Belonging to a Plugin
Great little guide from Mike at WP Bullet about how to figure out, using WP-CLI and grep the options that are related to a specific WordPress plugin. There’s nothing here that surprised me. And I’ll not that you can do effectively the same thing using any interface to the database data, including something like phpMyAdmin.
How to Start Unit Testing WordPress Plugins
I really appreciated this article from Carl Alexander about getting better at developing WordPress plugins. When most people (myself included) first hear about unit tests, you want to go set all old code on fire. But you can’t do that, so Carl offers some practical advice about how to incorporate testing practices into places where you’ve not historically been doing it. For most of us in WordPress, that’s everywhere.
ORM Patterns: Active Record vs Data Mapper
In one of the least-relevant-to-WordPress articles I published there, I recently covered the difference between an active record ORM system vs one using the data matter pattern. ORMs are essentially systems by which PHP (or any language) objects are stored-to and retrieved-from the database.