Displaying Taxonomy field
The taxonomy field type acts similarly to the Relationship field, but targets taxonomies and allows you to choose one or more taxonomy terms. By default, it displays the titles of the chosen items.
Advanced Views natively supports the following Taxonomy types:
ACF: any Taxonomy field
MetaBox: any Taxonomy, TaxonomyAdvanced field
Pods: any Relationship field (for terms)
1. How to display a Taxonomy field
Add any Taxonomy field
Save the Layout, copy its embedding shortcode
Embed Layout: paste the shortcode inside the target place
Advanced Views automatically creates HTML link markup for the chosen term(s). You can create a dedicated field Layout to display fields of the chosen post instead:
2. Displaying term details
Sometimes, instead of displaying the term as a link, you may need to display some fields of the selected term. To display term details, follow these steps:
Create a ‘Term Details’ Layout: This Layout will be responsible for displaying term details. In the Fields tab, assign the term fields you want to display, then publish the Layout.
Create a page Layout: Create a page Layout. In the Fields tab, add the target Taxonomy field, and assign 'Term Details' as a Field Layout, then publish the page Layout
Embed page Layout: copy and paste the page Layout shortcode inside the target place
That's it! Now you can customize the Layout template to use the Taxonomy render options.
Use a Taxonomy field to 'categorize' content. Combine it with a Taxonomy filter to query and display all items from a specific term.
Last updated