Category: Back-End Development
Learn WordPress Development: The Basic Course
WordPress development is a hugely useful skill, but it’s also tricky to learn—especially if you learn things out-of-order and try to tackle advanced topics while remaining confused on the fundamentals.
PHP Foreach: All You Need to Know
One of the most-used functions in my life with PHP is foreach. Partly, this is because it’s just an exquisitely named function, and it maps well to how I think. Partly this is because it’s kind of the backbone of a webpage: iterate through a set of things, operating on some selectively, and then display them all.
WP Cron in Practice: wp_schedule_event Examples + More
A few weeks ago we talked about what “cron jobs” were in WordPress and beyond. That tutorial about what “WordPress scheduled tasks” are hopefully gave you a good understanding of some of the things that you might do with them. Today we’ll instead focus on how you’ll use wp_schedule_event to actually do them. That is, we’ll cover a number of WordPress cron job examples.
Understand WordPress Scheduled Tasks: WP Cron Makes Sense
Sometimes you’ll hear, at a meetup for example, this word “cron” (or is it kron? “Chron”?!) around WordPress. Today we’ll understand what the heck it is and what it helps us do. WordPress scheduled tasks are common and useful for everything from ecommerce plugins to WordPress core itself.
How to Create and Use WordPress User Metadata (User Meta)
In this article, we explore WordPress user metadata, usually called simply WordPress user meta.
How to Create and Use WordPress Custom Fields
This article describes how to work with WordPress custom fields, also called post meta. In it, we describe how to use WordPress’s post meta PHP functions, especially get_post_meta() and update_post_meta(), and provide in-depth code demos as well as practical advice for working with custom fields tools like Pods and Advanced Custom Fields.
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.
PHP Math Functions: Understanding the Basics
Our focus today is PHP math. Or “PHP maths,” if you prefer British English. We’re not going to teach you the basics of mathematics itself, but just explore some of the common ways we use math in our PHP code and some of the less-clear things that end up super-valuable for web development using the PHP programming language.
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.