The builder
The builder
The builder is where you make field groups: the boxes of fields that appear when someone edits a page, a post, a block, an options page, a category or a user. This page explains every screen and every option, in the order you meet them.
In this chapter
Getting around 2
Building a group 5
- The builder screen At the right of the tabs: a Find a field box, and Collapse all to fold every field that has others inside it.
- Adding and arranging fields Press Add field. A window opens with every field type.
- The panel of a field When you click a field, its panel opens on the right. It has the same parts for every type; the first part changes with the type.
- Conditional logic Show it only sometimes hides a field unless another field of the same group has a certain answer. It is free.
- The Preview tab A drawing of the group as the editor will see it: boxes, widths, tabs, repeaters. Use it to check that widths sit side by side and that nothing is missing. Fields are drawn, not live: you…
Placing and saving 4
- The Location tab: where a group shows up "Where does this group show up?" is answered with rules, like a sentence: show this group when what to look at is a value. Add and another condition to narrow it, or or a different place to…
- The Settings tab of a group Parts of the editing screen you can hide: the content editor, the excerpt, the featured image, categories, tags, the slug, the author, the WordPress "Custom fields" box, discussion,…
- The JSON tab Shows the group exactly as it is saved in its file. You can read it, copy it, and in advanced mode edit it. A group written here is cleaned and checked the same way as one made in the…
- Saving, Sync and the file in your theme A group lives in two places: the database, and a JSON file in your theme (ugly-json/<name>.json). Every save writes both. That is what lets a group travel with your code.
Looking after groups 3
- Selecting several, and the trash The lists of Field groups, Content types and Taxonomies, and Options pages work the same way. (Blocks are folders of your theme: see Blocks.)
- Advanced mode A switch for each person: Settings → General → Show advanced mode. It is on by default.
- Keyboard and mouse The builder
No page matches. Try another word.
Where to go next
| You want to… | Read |
|---|---|
| Print what you built | The PHP API |
| Pick the right type for each piece of information | Field types |
| Choose where a group shows | Where a group shows up |
| Do one specific task | How do I…? Recipes |
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?