Skip Navigation

[Resolved] Using Custom Term/Taxonomy Fields in Custom Archive Templates

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.64 hours from now. Thank you for your understanding.

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 3 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#2119359
Screen Shot 2021-07-19 at 3.34.45 PM.png
Screen Shot 2021-07-19 at 3.34.11 PM.png

Tell us what you are trying to do? I created a group of custom term fields for a custom woocommerce taxonomy and need to be able to dynamically display those custom fields in the custom archive loop for that taxonomy template. I expected to see the option for dynamic population in custom template builder but the fields are not showing up as an option. I've not had any issues with this using custom fields for posts, but am not seeing a similar option for custom term fields.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#2119559

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

tax-filter.JPG

Hello,

It needs nested view, for example:
1) Dashboard-> Toolset-> Settings-> General-> Editing experience, enable option "Show both the legacy and Blocks interface and let me choose which to use for each item I build"

2) Dashboard-> Toolset-> Views, create a new taxonomy view:
- Query terms of your custom taxonomy,
- Filter by:
Taxonomy is set by the current post
See my screenshot tax-filter.JPG
- In view's loop, display your custom term field

3) Edit the Toolset WordPress Archive you mentioned above, display above taxonomy view's shortcode:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-view