Categories and custom taxonomy terms can carry their own fields — a colour, an icon, a longer description than the built-in one.
What It Does
A Taxonomy location rule puts a field group on the term add and edit screens. Values are stored as term meta.
Before You Start
- A registered taxonomy with at least one term.
- A field group to attach.
Put Fields on a Term
- Open the field group and find Location Rules.

- Set the parameter to Taxonomy.
- Choose the taxonomy.
- Click Update.
- Open a term for editing and confirm the fields appear.
When to Use It
- A colour or icon per category, used on archive pages.
- A longer, formatted description than the core term description.
- A featured image for a term.
Display the Value
Read a term value by passing a term selector:
<?php
$term_id = get_queried_object_id();
$colour = nxt_field_value( 'colour', 'term_' . $term_id );
if ( $colour ) {
printf( '<span style="--c:%s">', esc_attr( $colour ) );
}
Limitations
- Values are term meta, so they belong to the term rather than to any post in it.
- Deleting a term deletes its field values with it.
Troubleshooting
The fields appear when editing a term but not when adding one
Some field types render differently on the add-term form, which is a narrower screen. Save the term first, then edit it.
A template returns nothing
Pass the term selector — 'term_' . $id. Without it the function reads the current post.










