Helper Functions to Render Twig Templates for WordPress