最近更新的页面
Menus
In Timber, we handle menus a little differently than in WordPress. We’d say it’s a little smoothe...
Internationalization
Internationalization of a Timber theme works pretty much the same way as it does for default Word...
Hosts & Servers
This guide serves as reference for any host or server-specific information we gather. If you have...
Block Editor (Gutenberg)
Using the Block Editor with Timber Timber works with the Block Editor (also called Gutenberg) out...
Functions
Timber makes it easy to work with PHP functions in your Twig templates. You have three options: U...
Extending Twig
Twig Environment Twig has a \Twig\Environment class that you can use to extend Twig. One of the ...
Extending Timber
There’s a myth that Timber is for making simple themes, but in fact it’s for making incredibly co...
Escaping
Escaping describes the practice of securing output before rendering it for the end user of your w...
Debugging
Enable debugging To use debugging, the constant WP_DEBUG needs to be set to true. wp-config.php...
Date/Time in Timber
Working with dates and times in WordPress Before we tell you how to work with dates and times in ...
Custom Page Templates
Imagine that you’ve created a page called «About Us» and WordPress has given it the slug about-u...
Custom Integrations
The new Integrations API (available from Timber 2.0) provides a generalized way to integrate with...
Custom Fields
Timber tries to make it as easy as possible for you to retrieve custom meta data for Post, Term, ...
Text Cookbook
There’s tons of stuff you can do with Twig and Timber filters to make complex transformations eas...
Image Cookbook
Timber makes it damn easy to use an image in a tag. Automatically, Timber will interpret images a...
Context
The context is one of the most important concepts to understand in Timber. Think of the context a...
Comments
Simple Comment Implementation Looking to do non-threaded comments? This pattern can be expanded u...
Class Maps
The Class Map is the central hub for Timber to select the right PHP class for post or term object...
Cheatsheet
Here are some helpful conversions for functions you’re probably well familiar with in WordPress a...
Template inheritance and includes
Template inheritance You might have realized that there’s no HTML skeleton around the HTML for a ...