最近更新的页面
Introduction
Let’s get familiar with some of the concepts of Timber and Twig. Tutorial theme If you want to st...
A single post
Let’s look at a singular post template in more detail, because echoing a post’s title with {{ po...
A post archive
Here’s how a PHP template file for a WordPress archive looks like. index.php $context = Timber::c...
Timber v2.x
What is Timber? Timber helps you create fully-customized WordPress themes faster with more sustai...
Network
Network containers are used to add pages with options in the Multisite network administration onl...
Nav Menu Item
Nav Menu Item containers are used to extend the Nav Menu edit screens with additional fields. Fie...
Gutenberg Blocks
WordPress 5 introduces a new content creation experience with its new editor called Gutenberg. Gu...
Conditional Display
Containers are very flexible in terms of display options. By default, containers show on all rela...
Condition Types
post_meta conditions Name Description 'post_format' Check against the post format. Use a blank st...
Comment Meta
Comment meta containers add extra fields to the comment edit screens. Field data is stored separa...
WPML Support
Carbon Fields provide out-of-the-box support for WPML with the small exception of the Theme Optio...
Programatically updating field values
Carbon Fields allow you to update field values programatically through the set of carbon_set_{co...
Custom Datastore
The following example allows you to store theme options fields as a serialized array instead of m...
Integrating with WP_Query
Carbon Fields allow you to make Post, Term and User queries based on fields even inside complex f...
PHP Hooks
There are several hooks that allow you to include your custom classes and functionality at the ri...
JavaScript Hooks
To modify the behavior of existing fields, Carbon Fields exposes several hooks. See @wordpress/ho...
JavaScript API
Carbon Fields provide a useful JavaScript API on administration screens with visible containers w...
Field Name Patterns
A Field Name Pattern is a string which is used as a way to refer to a specific field when using t...
Compacting input variables to fit within PHP's max_input_vars
In some cases forms can end up having hundreds of inputs which can cause the save request to exce...
Support for Bedrock & similar frameworks
Carbon Fields has assets that need to be in your public directory in order to be loaded which can...