
learn to build WordPress themes from setup to plugin development, transforming templates into a restaurant website with a landing page, contact form, and editable menu.
Explore arrays: define regular and associative arrays, index access starting at 0, and multi-dimensional arrays used in WordPress, with practical examples.
Learn how PHP performs arithmetic operations, including addition, subtraction, multiplication, division, and modulus, and how variables, literals, and echo interact under order of operations, with exponent support using two asterisks.
Explore how to use relational operators and logical operators in WordPress themes to create boolean conditions, compare values, and control program flow.
Learn how logical expressions drive decision making with if statements in WordPress themes, using conditionals, else if, and else to execute code based on the first true condition.
Master Wordpress loop fundamentals by applying while and for each loops to iterate arrays, manage termination conditions, and prevent bugs with yoda conditions for safer comparisons.
Learn to organize and generalize code by using reusable functions, call and pass arguments, return values or print results, and explore boolean functions and common WordPress patterns.
Explore underscores as a starter WordPress theme, generate a theme, and install it in a local WordPress site; learn how underscores provides structure and common functionality without enforcing design choices.
Confirm a proper CMB2 installation and show how to add a custom meta box with a location field to posts and pages in a WordPress theme, via a demo.
Learn how to create a reusable WordPress template part, populate it with dynamic template tags in the loop, format dates, set permalinks, and style posts for a clean single-article display.
Build a full-width WordPress page template (page.php) and a corresponding content-page template part, adapting the loop, removing sidebars, and adding a featured image to mirror the page structure demonstrated.
Build the home page template with the content loop and a home content template part using custom fields, then create the home bottom widget area for the three-column bottom grid.
Turn static menus into dynamic WordPress navigation by registering menus and displaying them with wp_nav_menu, adapting theme locations and css for current items; explore multiple menus and the Walker class.
Learn data validation in WordPress theme development by validating untrusted data on input and output, using context-aware sanitization and escape functions like WP KISS and sanitize titles.
Discover how to internationalize WordPress themes and plugins for easy translation across languages, and implement localization with a text domain and translation functions like __() and _e().
Define and register a custom post type for a food menu, add custom fields, and configure supports and archive settings in a WordPress theme.
Create a WordPress food menu single template by duplicating the base template, removing permalink and date, and building a sidebar with price, menu type, and displaying taxonomy terms with get_terms.
In Building WordPress Themes: The Step-by-Step Guide you will learn how to take a static HTML site and convert it into a fully functional WordPress theme and plugin. We'll start with a primer for PHP to understand the underlying language WordPress is written in, as well as explore some tools to help you work. Then, we'll take a look at our static site and convert it!
By the end of the course you will:
What are we building?
Since it's something we all know and love, we'll create a restaurant website! We'll build basic pages like about and contact, add a blog, and create a nice, interactive menu that's easy to update!