Skip to content
themeforge
EN
Start free
Menu
  1. Home
  2. Attribute reference
  3. tax-group
Core Categories

Several category fields as one block

tax-group="Field name"

When a category has several related fields, such as origin, altitude and roast, they are easier to keep together. tax-group gathers them into one group in the category’s settings.

Where it goes

On the block that holds the fields: tax-group="Category origin". The fields inside are ordinary fld-text and the rest, and they become the group’s fields.

It works like fld-group, only the group lives on the category.

The field appears in the admin only if the page has a group name: wp-fields-group on its <body>.

Example: where the beans come from

Markup archive.html
<aside class="category__origin" tax-group="Category origin">
  <p fld-text="Region">Sidama, Ethiopia</p>
  <p fld-text="Altitude">1,900–2,200 m</p>
</aside>
In the admin Posts → Categories → Coffee
Name Coffee
Category origin
Region Sidama, Ethiopia
Altitude 1,900–2,200 m
On the site category page
Coffee
Region Sidama, Ethiopia
Altitude 1,900–2,200 m

The client filled in the region and altitude on the “Coffee” category.

What matters

  • The group appears on every category and tag.
  • Values are entered on each category: “Load data” does not fill category fields.
  • For repeating rows, use tax-loop.

Common mistakes

The build log is the “Logs” tab of your project on themeforge.pro; the free markup check shows the same notes.

Not like this
<aside fld-group="Category origin">
  <p fld-text="Region">Sidama, Ethiopia</p>
</aside>

fld-group on a category page is a group of a page or post, not of the category: the category gets no values of its own. The log stays silent.

Like this
<aside tax-group="Category origin">
  <p fld-text="Region">Sidama, Ethiopia</p>
</aside>

tax-group is the category’s own group.

Alternative spelling

t_group works the same: the build gives an identical theme.

Ready when you are

See your site’s WordPress admin before you pay.