php

  • I’ve avoided namespacing for years, thinking it was this big complicated beast. While working on my new WordPress starter template, I decided to use it in an attempt to better organise my code. Turns out it’s simpler than it looks. Namespacing is just a way to organise your code. You’re essentailly saying this code is…

  • A quick tip when building your theme is to separate any logic to the display of your data. For example you might have this code (taken from the codex) in your single.php to loop through and show the categories for a particular post But by putting the code inside the template you’re mixing logic (looping…

Need a web developer? Let’s chat