WordPress version 4.4 comes with added support for Term Fields which is meta data for Taxonomy Terms, just like Custom Fields for posts and User Fields for users.

If, for example, you need to enrich your categories with additional information, like a featured image or an external link, and if you want to display this data on the front-end, Term Fields is the solution.

Types plugin provides an easy way to add and manipulate Term Fields of your taxonomies via a graphical interface.

Create Group for Term Fields

The first thing you need to do is to create a new term field group by clicking on Add New in Toolset->Term Fields screen.

Add New Term Field Group screen
Adding New Term Field Group screen

In the Where to Include These Fields section, you can manage the fields of the new group in which Taxonomies will be displayed.

Assign a Term Field Group to Categories
Assigning a Term Field Group to Categories

Adding Fields to the Group

You can add new fields to your group by using the Add New Field button. In the pop-up dialog box that appears, select one of the available field types.

Available Field Types
Available Field Types

In the section that is created for the new field, you can provide additional information and options that are related to this field.

Image Field Information
Image Field Information

Then, you can continue adding more fields to your group and save your group when you are done adding fields.

Using the Fields in Your Taxonomies

Term fields are now part of the taxonomy information. This means that you can add term field values when you add a new category or you can edit existing term field values when you edit an existing category.

Term field values in category add page Term field values in category edit page
Term field values in category add page Term field values in category edit page

Hidden Term Field Columns

In case that more than 3 term fields are assigned to a specific taxonomy, the table of the listing page is getting too big and non-readable. To prevent this, only the first 3 field columns are being displayed and the rest columns are automatically hidden. You can show or hide any term field column from the Screen Options of the page.

Term field columns visibility
Term field columns visibility

Displaying Term Fields

Now, everything is set for you to start adding information to your taxonomy term using Term Fields. The next step is to fetch these field values and display them on the front-end. You can achieve this either with a custom PHP code using Types API or using the Views plugin without the need for any coding.
When you are done adding the Term Fields in the WordPress admin, learn how to display Term Fields on the front-end.

 

Types is a free plugin for managing custom post types, taxonomies and fields.

Download Types

The complete Toolset package makes Types even more powerful. You will be able to build entire websites from the WordPress admin without any coding.