Carl Hughes: Get Twig, use Twig, smile

Continue the discussion

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s


August 23, 2018

WordPress theming is great but with Twig it can be more fun. Twig is a PHP template engine thats incredibly fun to use. With Twig you write your HTML separate from your PHP files, this separation means you can bypass the_loop entirely.
Twig templates are reusable HTML fragments which can be used multiple times in your theme. You could even create a style guide that directly uses the same Twig templates as your theme meaning any updates to your themes HTML updates your style guide as well.
This talk will cover the benefits of using Twig when theming, explain how to get started and provide some working examples for you to try on your own.

Presentation Slides »

Rate this:


WordCamp Bristol 2017 19


Carl Hughes 1


template 7
twig 3


English 9646

MP4: Low, Med, High, Original
OGG: Low
Subtitle this video →
%d bloggers like this: