跳转到主要内容

最近更新的页面

Menus

Timber 主题开发文档

In Timber, we handle menus a little differently than in WordPress. We’d say it’s a little smoothe...

由 壳壳虫 更新于 2 个月前

Internationalization

Timber 主题开发文档

Internationalization of a Timber theme works pretty much the same way as it does for default Word...

由 壳壳虫 更新于 2 个月前

Hosts & Servers

Timber 主题开发文档

This guide serves as reference for any host or server-specific information we gather. If you have...

由 壳壳虫 更新于 2 个月前

Block Editor (Gutenberg)

Timber 主题开发文档

Using the Block Editor with Timber Timber works with the Block Editor (also called Gutenberg) out...

由 壳壳虫 更新于 2 个月前

Functions

Timber 主题开发文档

Timber makes it easy to work with PHP functions in your Twig templates. You have three options: U...

由 壳壳虫 更新于 2 个月前

Extending Twig

Timber 主题开发文档

Twig Environment Twig has a \Twig\Environment class that you can use to extend Twig. One of the ...

由 壳壳虫 更新于 2 个月前

Extending Timber

Timber 主题开发文档

There’s a myth that Timber is for making simple themes, but in fact it’s for making incredibly co...

由 壳壳虫 更新于 2 个月前

Escaping

Timber 主题开发文档

Escaping describes the practice of securing output before rendering it for the end user of your w...

由 壳壳虫 更新于 2 个月前

Debugging

Timber 主题开发文档

Enable debugging To use debugging, the constant WP_DEBUG needs to be set to true. wp-config.php...

由 壳壳虫 更新于 2 个月前

Date/Time in Timber

Timber 主题开发文档

Working with dates and times in WordPress Before we tell you how to work with dates and times in ...

由 壳壳虫 更新于 2 个月前

Custom Page Templates

Timber 主题开发文档

Imagine that you’ve created a page called «About Us» and WordPress has given it the slug about-u...

由 壳壳虫 更新于 2 个月前

Custom Integrations

Timber 主题开发文档

The new Integrations API (available from Timber 2.0) provides a generalized way to integrate with...

由 壳壳虫 更新于 2 个月前

Custom Fields

Timber 主题开发文档

Timber tries to make it as easy as possible for you to retrieve custom meta data for Post, Term, ...

由 壳壳虫 更新于 2 个月前

Text Cookbook

Timber 主题开发文档

There’s tons of stuff you can do with Twig and Timber filters to make complex transformations eas...

由 壳壳虫 更新于 2 个月前

Image Cookbook

Timber 主题开发文档

Timber makes it damn easy to use an image in a tag. Automatically, Timber will interpret images a...

由 壳壳虫 更新于 2 个月前

Context

Timber 主题开发文档

The context is one of the most important concepts to understand in Timber. Think of the context a...

由 壳壳虫 更新于 2 个月前

Comments

Timber 主题开发文档

Simple Comment Implementation Looking to do non-threaded comments? This pattern can be expanded u...

由 壳壳虫 更新于 2 个月前

Class Maps

Timber 主题开发文档

The Class Map is the central hub for Timber to select the right PHP class for post or term object...

由 壳壳虫 更新于 2 个月前

Cheatsheet

Timber 主题开发文档

Here are some helpful conversions for functions you’re probably well familiar with in WordPress a...

由 壳壳虫 更新于 2 个月前

Template inheritance and includes

Timber 主题开发文档

Template inheritance You might have realized that there’s no HTML skeleton around the HTML for a ...

由 壳壳虫 更新于 2 个月前