DOCS

Single term templates

The Single term template is the template that is utilized when you visit an individual term in your site, for example yoursite.com/category/restaurants

Creating a template

Single term templates are created in WP Admin ➝ Design ➝ Taxonomies ➝ Single term

You can create unlimited single term templates, and apply them to different taxonomies, or individual terms on those taxonomies.

Press the “Create template” button to create a template, and define the label

Applying the template

Once the template is created, you can apply conditions to define where this template is utilized. You do that by clicking the condition icon

This will open Voxel visibility rules UI. To assign this template to a taxonomy, you can choose condition “Is single term” then pick an available taxonomy in the dropdown

If you would like to apply this template only to a specific term within that taxonomy e.g restaurants, then you can type the slug or ID of that term under “Enter term ID or slug”. Otherwise, leave this empty to target all terms within this taxonomy

Designing the template

Once you create the template, you can edit it with Elementor.

When designing the Single term template, you can pull dynamic tags from the Term group such as Label, Description, Icon and other dynamic tags related to taxonomy terms

A useful thing to configure before starting to design the template, is to pick the term which you want to use for preview within the editor. This can be selected in page or document settings.

Displaying posts

To display posts in the Single Term template, you can drag and drop the Post feed (VX) widget to the page.

In the post feed widget options, set the Data source to Filters and pick your post type

As we set the data source to Filters, we can use all the available filters created in the post type editor to filter our results.

In this case, we want to filter by the current taxonomy term, so we add the Term filter that we created for that taxonomy

and as default value, we enable dynamic tags then pick Term ➝ Slug

Displaying term label

To display the term label, we can add a text based widget for example a Heading, and populate it with dynamic tags Term ➝ Label

Displaying term description

To display the term description, we can add a Text widget, and populate it with Term ➝ Description dynamic tag

Displaying term icon

To display the icon, we can add an Icon widget, and populate it with Term ➝ Icon dynamic tag

Continue reading