How to replace the WordPress frontend with Twig, FastRoute and Dice
I consider this guide an experiment, a test to see if its possible to replace the Wordpress frontend entirely. Getting rid of Wordpress frontend means getting rid of overhead like database requests, bad plugin code. Instead we get performant, clean templates and have more control over the frontend. This is a rather extreme step with downsides. You loose all the frontend logic, plugins, search result pages, category pages, archive and so on – you loose flexibility, have to rebuild all of the thinngs just mentioned from scratch. Still this might be worth it, if you love Twig, and want to bring it's benefits into the Wordpress cosmos. In this article I outline what you need to get started.
By Erik. Erik Pöhler's Weblog.