Separating logic and presentation in wordpress
Actually, there is something better, and that is using templates. Yes, it might be "radical" especially when you see no other developer near you use it. And yes, even my college instructors and friends don't know what templates are and still stuff logic with the presentation so I know how it feels as well.

I suggest you take a look at Mustache for starters. Basically, your templates will be logicless. The template will only contain a bit of custom markup. What your logic will only need to do is load the data, load the template, use the render function and it returns rendered markup, complete with the data.