Tag: PHP
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.)
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.
The Four Languages You Must Know to Understand WordPress

Learning WordPress development starts with a lot of key questions, including this one: “What language is WordPress written in?” Another common one is “Should I learn PHP or JavaScript first?” WordPress programming languages is a big topic, but we’ll cover all you need to get started.
Learning PHP for WordPress Development: Understanding PHP’s echo

Welcome to this rundown on echo in PHP! This article is part of our series explaining the fundamentals of PHP for WordPress development, so that you can start learning the language of WordPress “under the hood” and unlock the powers of a full-fledged WordPress developer.
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.
PHP for Beginners: Starting on Backend WordPress Development

WordPress, the content management system the internet loves. You can use it for years without needing to tackle PHP, but eventually you’re finding yourself needing it. You go to Bing and search “php for beginners” and you find yourself here. The journey to learn PHP for WordPress development is long, but let’s start!
Understanding Class Inheritance (Child and Parent Classes) in Object-Oriented PHP

Last time, we covered the fundamentals of object-oriented programming (OOP) in PHP: what an object is, what a class is, and how they interact.
How to Auto Update the Copyright Year in a WordPress Footer

An out-of-date copyright year in a site’s footer is a common sight, especially early in a new year. It happens because people don’t take advantage of WordPress’s server-side language, PHP, to auto-update the copyright year in WordPress. Instead they’re manually changing it. But it’s a complex and menial task, so it’s easy to put off.
How to Include JavaScript Files on Your WordPress Site with wp_enqueue_script()

Want to know how to include a JavaScript file onto your WordPress site? Here, we explain and demo an awesome WordPress function called wp_enqueue_script() that is the correct way to include JavaScript files in WordPress.