WordPress Articles from David Hayes
David B. Hayes is co-owner of WPShout. He's been using WordPress since 2007, and has a mature love (like an old married couple) for the content managment system. He's done loads of client work with it, uses it on a variety of personal projects, and generally thinks it's worth most people keeping it in their toolbox.
In addition to WordPress, he's into cycling, board games, and civic tech (running Code for Fort Collins). He also loves coffee and write about it at LowKeyCoffeeSnobs.com. And lastly (for this space) he writes about code beyond WordPress at Thoughtful Code.
Block Dependent Themes
An interesting thing as Gutenberg grows is that it’s aiming to impact both WordPress themes and page builders. And to do this, we may need or want a way for a theme to say it required a specific Gutenberg block to function. I have not thought deeply about it, but I see that Mel Choyce is. So please consider and opine with her about this possibility. Here are two parts of her initial proposal:
Using the wp_footer Action Hook to Modify Your Site’s Footer (Without Theme Changes)
This week’s text and video Quick Guide shows how to use WordPress’s wp_footer action hook to make changes to your site’s footer—without editing your theme.
How to Add CSS Classes to a Gutenberg Block
In this text and video Quick Guide, we’ll show you how to add additional CSS classes to a Gutenberg block—that is, a block in the new WordPress editor.
Tinkerwell for WordPress
As someone who has been tracking both the WordPress world and the Laravel world for years, I was intrigued by Ross Wintle highlighting something I didn’t really know much about. (If I’m honest, it’s been about a year since I was dipping into Laravel regularly.)
How to Install a New WordPress Theme Using a Zip File
This text and video Quick Guide covers something simple and important in WordPress: how to install a WordPress theme from a zip file.
Don’t Just Write WordPress Code
One of the first and most powerful lessons I learned while teaching myself to code a decade ago was to read/listen/watch widely. I believe it is one of the most powerful choices you can make in learning to code (or in almost any endeavor). Because broader minds (ones which have been exposed to more things) are often *way* better problem-solvers than narrower ones. Because the solution space they can conceive is just so much bigger. But that’s enough “David’s Life Philosophy” for now.
How to See Which WordPress Template File is In Use with Show Current Template
In this text and video Quick Guide, we teach you how to show the WordPress template file being used on a given webpage on your site, using the Show Current Template or Which Template plugins.
Even on PHP 7, WordPress is not “Modern PHP”
Our friend Carl Alexander wrote a (possibly) inflammatory but true argument for Delicious Brains this week. It reflects a lot of thoughts I’ve had as I’ve spent the last few years as one of the small minority of people trying to span the roles of “WordPress” and “modern PHP” developer. In short, he’s said all I’ve thought in a fair, even handed, and useful way. While action is hardly guaranteed, helping to reach a public consensus about the state of WordPress PHP is the first step in evolving toward making it a modern PHP project (if that’s ever desired by enough of the right people, of course).
Working With WordPress User Roles and Capabilities
There are a few things that you must understand about user roles and capabilities to be an effective administrator of a WordPress site: things like what a user is, how you make a new one, and what you’d make users for. There’s lots of value in covering those things, but our goal today is to really get a solid understanding of how the whole WordPress user management and role system works conceptually, and to cover a few of the most important ways of modifying it.
We’re looking for Tech-Tutorial Authors
In 2020, Fred and I are prioritizing featuring writing from people other than ourselves on WPShout. If you’ve got an urge to write clear, useful, and interesting technical tutorials for the WPShout audience, this is the perfect opportunity for you. We’re still locking in all the details, but in short it’d likely be at most an article assignment per month, where you’ll write about 1500 words (ideally with some code snippets 🤓) about your favorite things in WordPress adjacent code.