Separating display and logic in your PHP templates
-
Book notes: Twenty Bits I Learned About Making Websites
I just picked up and read Twenty Bits I Learned About Making Websites by Dan Cederholm. It’s a very short read but really fun and nostalgic. Dan does a great job keeping things really casual. A few takeaways Content is king Semantic HTML, performance and accessibility aside. A website is only as good as the […]
-
Separating display and logic in your PHP templates
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 […]
-
Three questions to help you focus and reduce unnecessary web work
Why are we doing this? How does this help our users? Is there a simpler way?