Taxonomy fields (Categories, Tags)
Let users choose categories, tags or custom taxonomy terms, exclude terms, add default terms and find a term ID.
Taxonomy fields let users put their post into categories, tags or other taxonomies. The Taxonomies group in the form builder shows one field for each taxonomy of the selected post type. For posts these are Categories and Tags. Each taxonomy field can be used once per form.
If a post type has no taxonomies, the group is empty.
Settings
| Setting | What it does |
|---|---|
| Label, Required, Placeholder | As in other fields |
| Order | Sort terms ASC (A to Z) or Desc |
| Multiple Selections (Pro) | Allow more than one term |
| Show empty | Also show terms that have no posts yet. Turn this on for a new site. |
| Allow Add New (Pro) | Users can create a new term by typing it. Works only with Show Search Input on. |
| Show Hierarchically (Pro) | Show child terms under their parent |
| Show Search Input | A search box inside the dropdown |
| Terms to excluded | Term IDs to hide, comma separated, for example 556,778,993 |
| Default terms | Term IDs that are always added to the post, comma separated, for example 128,99. Users do not see them. |
| Required error text | Default “Term selection is required” |
| Search placeholder | Text in the search box. Default “Search” |
| No result text | Shown when the search finds nothing. Default “No Results” |
Categories do not show?
New categories without posts are hidden. Tick Show empty. See Categories are not shown in the form.
Find a term ID
Terms to excluded and Default terms need term IDs.
- In wp-admin open the taxonomy, for example Posts → Categories or Posts → Tags. Custom taxonomies are under their post type menu.
- Click the term name to edit it.
- Look at the address bar. It looks like
…/wp-admin/term.php?taxonomy=category&tag_ID=5&post_type=post. - The number after
tag_ID=is the term ID. Here it is5.
Quick way: hover the term name in the list. The browser shows the same link in the bottom left corner of the window.