Location rules decide where a field group shows up. A rule reads like a sentence: Post Type is equal to Event.
- Click and to add a rule that must also match (Post Type is Event and Event Type is Conference).
- Click Add rule group to add an or alternative (on Events or on the page "About").
Popular rules:
| You want the fields on… | Rule |
|---|---|
| A post type | Post Type is equal to Event |
| One specific page | Page is equal to About |
| Pages using a template | Page Template is equal to Landing |
| Posts in a category | Post Category is equal to News |
| The home page | Page Type is equal to Front Page |
| Category or tag edit screens | Taxonomy is equal to Category |
| User profiles | User Form is equal to Add / Edit |
| Media items | Attachment is equal to All |
| An options page | Options Page is equal to Site Settings |
| Menus or menu items | Menu / Menu Item |
| A custom block | Block is equal to your block |
Live matching. Groups that depend on the page template, categories or other terms, the post format, the parent page or the post status appear and disappear the moment you change those settings in the editor, without saving first. A group that is hidden this way is not saved and never blocks publishing.
