Writing a WordPress Plugin From Scratch: A Step-by-Step Tutorial
This WordPress plugin development tutorial captures the steps I went through on a real project, including the mistakes I made and how I debugged them.
Simple WP_Query Example: Using a Shortcode to Display Post Titles
In this video and text Quick Guide, we present a basic use of WP_Query inside a WordPress shortcode, to show the post titles of the five most recently published posts. We’ve designed this Quick Guide to be a simple intro to using WP_Query in general, as well as to using WP_Query to display post titles and other post data inside a shortcode specifically.
Three Tips for Writing Airtight PHP Conditions
In PHP, conditions are the core of conditional statements such as if-statements, and of certain other control structures like while() loops.
How to Use FTP to Deactivate a Plugin That’s Breaking Your WordPress Site
In this text and video Quick Guide, we’ll explain how to deactivate a WordPress plugin via FTP.
Understanding PHP Operators of Logic, or || and && and ! a lot more
There are a lot of different PHP operators. Some are PHP comparison operators, and work like math you’re used to. We’ll save those for another time, because our sole focus this time will be PHP logical operators. That is the logical “and” and “or” of boolean logic.
Learning PHP for WordPress Development: while() Loops
Welcome to this discussion of PHP loops: what loops are, whey they’re important, and how to use PHP while() loops. This article continues our series explaining the basics of PHP for WordPress development.
Learning PHP for WordPress Development: Control Flow Basics
Welcome to this introduction to PHP control flow! This article continues our series explaining the basics of PHP for WordPress development.
Understanding PHP Globals and Variable Scope in WordPress
One of the most maligned features of WordPress is the use of “PHP global variables.” Whether you love them or hate them, global variables probably aren’t leaving WordPress soon. So today we’ll cover all there is to know about them. How to think about them. How you, in PHP, make variables global, access WordPress’s global variables, and a little about the theory and debate about global state in software applications.
Learning PHP for WordPress Development: How to Include PHP in HTML
Welcome to this article on how to use PHP in HTML! Here, we try to get specific about exactly how PHP and HTML interact, at the level of a specific .php file. In other words, how do you actually include PHP in HTML, and what rules can and can’t you follow in weaving PHP and HTML together?
WordPress’s get_template_part() function: What and Why
This article introduces an important concept in WordPress themes: the WordPress get_template_part function. It’s one of the many important concepts of WordPress theme development. Mastering WordPress theme development is an important milestone in understanding WordPress development more generally. (We have a full free course on the topic, check it out.)