Skip to main content

Term

Access taxonomy term data. Available on term archive pages and inside term Loop blocks (via the loop data alias).

All Fields

FieldArgumentsReturnsDescription
idintTerm ID
namestringTerm name
titlestringTerm title (alias for name)
slugstringTerm slug
descriptionstringTerm description
countintPost count
linkstringTerm archive URL
pathstringTerm archive path
edit_linkstringAdmin edit URL
taxonomyobjectTaxonomy object
parentTermParent term
childrenarrayChild terms
postsarrayPosts in this term
can_editboolCurrent user can edit
metafield_namemixedTerm meta value
raw_metafield_namemixedUnescaped meta value
has_fieldfield_nameboolCheck if field exists

Basic Fields

{{ term.id }}
{{ term.name }}
{{ term.slug }}
{{ term.description }}
{{ term.count }}

URLs

{{ term.link }}
{{ term.path }}
{{ term.edit_link }}

Taxonomy

{{ term.taxonomy.label }}
{{ term.taxonomy.name }}

Hierarchy

{{ term.parent.name }}
{{ term.parent.link }}
{{ term.children }}

Posts

{{ term.posts }}

Permissions

{{ term.can_edit }}

Custom Fields (Meta)

{{ term.meta('icon') }}
{{ term.meta('color') }}
{{ term.meta('featured_image') }}

Common Patterns

Display term with post count

{{ term.name }} ({{ term.count }})

Build breadcrumb with parent

{{ term.parent.name ?? '' }}{{ term.parent ? ' / ' : '' }}{{ term.name }}
<a href="{{ term.link }}">{{ term.name }}</a>