Skip to content

Adding Functionality with functions.php, a Heart of WordPress Theme Development

The functions.php file is one of the most useful files in your theme. If you're developing lots of themes, the chances are you've got some sort of framework either that you use yourself or is published by a third party. This is a collection of snippets you can put in your functions.php file and they'll perform a number of handy functions which makes your life running WordPress just that bit easier.

(read more)

WordPress Template Hierarchy Explained

WordPress Template Hierarchy

This post clears things up and explains how WordPress decides which file to load for a page, both in classic and block themes. I'll show where the templates go, what WordPress looks for first, and how it moves down the list when files are missing. If you're building or editing a theme, this is what you need to know first.

(read more)