Just here to say: if you have to be using WordPress, use Timber (http://jarednova.github.io/timber/).
Abstracts away what is terrible about querying posts, pages, authors, comments, etc and gives you nice objects with what you'd expect. Uses Twig templates.