Displaying fields from a Taxonomy term
Last updated
In WordPress, Taxonomy terms can also have custom fields - usually created with ACF, MetaBox, or Pods. Advanced Views allows you to display them.
In Advanced Views, Layout embedding happens using native WordPress shortcodes. Each Layout has its own unique shortcode that can be pasted into any location, regardless of the theme, editor, or page builder you're using.
Shortcodes also support arguments, allowing you to customize the behavior of the same entity in different contexts.
Add any fields
Save the Layout, copy its embedding shortcode
Add the object-id="term" argument
Optionally. Add the term-id="YOUR_ID" if you need to display fields of a particular term. If you paste the shortcode on the term template/page, this argument can be omitted.
Embed Layout: paste the shortcode inside the target place
To load fields from the options page, the Layout shortcode should contain at least 3 arguments:
[avf-layout name="Name" id="651d5d75bfdf2" object-id="term" term-id="OPTIONAL_TERM_ID"]name argument - used for clarification purposes only and doesn't play any functional role.
id argument - associates the shortcode with a specific Layout.
object-id argument - with term value
term-id argument - specifies the term ID whose fields should be displayed. If you paste the shortcode on the term template/page, this argument can be omitted.
You can also use the common Layout shortcode arguments to additionally customize this Layout embedding, e.g., limiting its visibility for specific user roles.
For displaying fields of the specific term chosen in the Taxonomy field, please refer to this Taxonomy field guide.
Last updated