Yesterday, I sketched out how to conceptualize how many of us are likely used to working with WordPress templates.
Though the separation of concerns with CSS and JavaScript is solid, templates are problematic whenever there is a lot of PHP mixed with our markup.
To be clear, we can’t help but include template tags because that’s the nature of how WordPress and general PHP-based content management systems work.
The problem comes whenever we’re working with templates that contain code making more complex calls to various APIs. Though I demonstrated this using WP_Query (and will continue to do so), it’s not just that query.
Anyway, though, what are we supposed to do with this?


