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.
How to See What Fonts a Website is Using
If you’ve ever wondered how to see what fonts a website is using, the answer is as simple as opening your browser inspector. Since every bit of a website is interpreted in your browser, if you know how to use your browser inspector properly you can figure out fonts, images, CSS properties, and anything else on the page.
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.
How to Migrate your Site with All-in-One WP Migration
Migrating WordPress sites is a common and annoying task. Whether that’s between two different remote web servers, between a development server and production, or from production to local, there are lots of directions your WordPress site migration might flow. All-in-One WP Migration remains the tool of choice for us at WPShout most of the time. It’s certainly one of the best free ways to move a WordPress site.
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.)
How to Remove the Date from a WordPress Post URL
So, you want to remove the date from your WordPress post URLs? I get it. Those /2016/07/09/post-slug URLs that seemed pretty cool when you (or someone else) set it up get old. The primary reason: when you update that post, what should you do? Leave it’s URL looking old? Move it to the new one and worry it’ll break. These concerns are why we use the “Post name” option for WordPress permalinks here at WPShout and encourage most of our clients to do the same.
Learning PHP for WordPress Development: Understanding PHP’s return
Welcome to this rundown on return in PHP! This article continues our series explaining the basics of PHP for WordPress development.
How to Link to Page Content from a WordPress Navigation Menu
Sometimes you might want your WordPress navigation menu items to link directly to a page section that sits in the middle of a larger page, rather than simply to the top of the page. For example: instead of creating a nav menu link to a Contact page, how do I create a menu link to the Contact section of my homepage?
Learning PHP for WordPress Development: Introduction to PHP Functions
This article is an accessible dive into one of the bedrock concepts of modern programming: functions.