Skip Navigation

[Resolved] How do I create a view to display taxonomy icons for CPT?

This support ticket is created 3 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 3 replies, has 2 voices.

Last updated by Minesh 3 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#1991217

Tell us what you are trying to do?
I want to know how to create a VIEW or SHORTCODE or PHP that will output the ICONS from the Taxonomy of a CPT that is currently being displayed.

Is there any documentation that you are following?
I can't find any documentation.

Is there a similar example that we can see?

What is the link to your site?
hidden link
This is all I have so far.

#1991677

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share bit more information where and how exactly you store the icons as well as where you want to display the icons.

Do you mean that you have added a custom term field that holds the icon?

#1993635
Toolset_Taxonomy_Terpenes.jpg
Toolset_Taxonomy_Terpenes_EditTermFieldGroup.jpg
Toolset_Taxonomy_Terpenes_CustomFieldsGroup.jpg
Toolset_Taxonomy_Terpenes_AddNew.jpg

I have a CPT called Flowers with a taxonomy called Terpene.
I have a Custom Field Group called Terpene Identifiers
Terpene Identifiers appears on the Taxonomy Terpenes.
The Custom Field Group "Terpene Identifiers" has an Image field type, named Icon.

I'm trying to display Flower and show all of the terpene icons for that flower on a page.
Does that make sense?

#1995725

Minesh
Supporter

Languages: English (English )

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

Ok - I got it.

To display the term field, you will require a view.

Please create a taxonomy view to display the term fields.

if you are using blocks, you need to navigate to "Editing Experience" section available at:
=> Toolset => settings => General tab => Editing Experience section and select the option " Show both the legacy and Blocks interface and let me choose which to use for each item I build"

Then, you will find the "Views" menu under Toolset Menu. So, go to: Toolset => views
- Create a taxonomy view and add a "Query Filter" for "Taxonomy term" and select the option " Set by the current post" and then navigate to "Loop Editor" section and using "Fields and Views" button add your term fields within the loop.

Then save your view and add this taxonomy view at your desired place of your single flower post template.

More info:
=> https://toolset.com/documentation/user-guides/views/displaying-wordpress-term-fields/