Skip Navigation

[Resolved] Support toolset_get_field_instance() for terms

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 4 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1468953

We have created a custom field for WooCommerce product categories (brochure PDF) and need to display it on the WooCommerce Single Product page of Avada. To accomplish this, we are trying to use toolset_get_field_instance($term, 'terms', 'brochure-pdf') to get the brochure PDF URL in our child theme, but we are getting a RuntimeException: Not implemented.

On https://toolset.com/documentation/programmer-reference/toolset-custom-field-api/#toolset_get_field_instance, the following is mentioned:

"Note: At the moment, supports only the post domain. File a feature request if you need to use this for users or terms."

Is there anything else we can do to get the brochure PDF URL from Toolset through some sort of API? Otherwise this blocks the development of a solution for one of our customers.

Thanks in advance!

#1469303

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To display the custom term fields on the frontend, you need to create a taxonomy view that should set to query " WooCommerce product categories" and add the taxonomy term filter:

Taxonomy term filter
Taxonomy is set by the page where this View is inserted

And within the Loop editor, you should add your custom field brochure-pdf and add this view to your single product page.

More info:
https://toolset.com/documentation/user-guides/custom-content/displaying-wordpress-term-fields/