Author: David Hayes
Writing WP-CLI Commands that Work
Just yesterday I watched this great talk from Steve Grunwell (who I had the pleasure of meeting at Lone Star PHP 2017) about WP-CLI commands. It’s from Loopconf 2.1. It’s a very good talk about the how, what, and why of making your own commands. If you’ve ever thought about writing WP-CLI commands, or just wondered how they work internally, he does a great job summarizing all of that and more. Here it is inline:
White Screen of Death? Turn on WP_DEBUG
WordPress people will often talk about the “white screen of death” or WSOD. They’re referring to when a WordPress site just stops making web pages and instead offers only a giant white field. This is intimidating for anyone, but especially new developers who’ve never seen it before. Generally the issue will be caused by a plugin or theme that has gone wrong. But knowing which and why is not clear.
How and Why to Create WordPress Custom Taxonomies
Organizing your content is one of the core features of a content-management system like WordPress. As such, it creates what are called “taxonomies” to help you keep your content easy to find for both your and your visitors. Today we’re focused on why and how you make a custom taxonomy.
Easy Social Sharing with AddToAny
The importance of social media to marketing success on the internet today is hard to understate. It basically is the avenue of marketing success on the internet. I’d add that social share buttons are hardly a solution to finding marketing success on the social media, but helping your audience share you content does markedly make them more likely to do so. (For real success you need more difficult things like engagement with and from your followers, etc.)
What WordPress Teaches Us About Software Ecosystems
Quick Note: I’m speaking about this topic at Lone Star PHP 2017, April 20-22. If you’re looking to learn about PHP development, and can get to the Dallas-Fort Worth area, it’s a great conference and you should come!
Author-specific WordPress Sidebars with Jetpack Widget Visibility
Widgets are an awesome way to customize sidebars, footers, and more in WordPress. And what’s more, they make it easy to change. But they’re not, out of the box, very good at support logic tricks you may want to pull. That’s where various different widget control plugins come in.
Prevent Brute Force Attacks with Limit Login Attempts
Many people are worried about WordPress security. The core project is secure (if updated) but that doesn’t stop people form worrying. That said, it doesn’t mean that there is no benefit from taking steps to harden the base configuration. I personally dislike most “security” plugins–they feel too big to me and the benefits they confer are small or unknown.
Creating a WordPress Widget to Show a Random Post
Making a widget to show a random post uses two underlying concepts you need to get familiar with to be good at WordPress development: making use of WP_Query objects, and making widgets. If you’ve not checked them before, check out our Quick Guides which more thoroughly introduce both:
Making Your First WordPress Widget
Sidebars were one of the oldest features of WordPress as a publishing platform, and widgets have been in WordPress for years. This little quick guide walks through the process of making your own widget. Why would you want to?