Deal of the Month: 70% off SiteGround Hosting!

Spelunking into the Template Hierarchy

template-hierarchy-feature

The template hierarchy is one of my favorite features in WordPress. It not only makes child themes possible, but it also makes the whole ecosystem better because more code can be written to sit in smaller and smaller chunks. This is great. What’s also cool about it is that it’s all enabled by a few relatively small chunks of code. But staring at them starts to expose us to some of the most interesting parts of WordPress.


Recent Links


More Articles

Course: Working with WP_Query

jQuery-course 1. Understanding the Basics of Object-Oriented Programming

The WP_Query API uses a programming style called object-oriented programming, or OOP. Every WP_Query is actually a WP_Query Object, meaning an individual instance of the broader WP_Widget Class. If this setup doesn’t make sense to you, you’ll want to quickly learn the basics of object-oriented programming (OOP):