Skip Navigation

[Resolved] Show custom taxonomy term within a view

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 1 voice.

Last updated by Minesh 1 week ago.

Assisted by: Minesh.

Author
Posts
#2798449
2.the-view.jpg
1.taxonomy-term-fields.jpg

Tell us what you are trying to do?
I'm listing data in a table. The data is shown in a view (within a content template) where I show info for custom post types (named "Ankommande" and "Utgående" that are sharing the same custom taxonomy "Fartyg". I've now created custom terms for this particular taxonomy and would like to show the data right below the taxonomy name within the view/loop. However, this seems to be impossible?
I can get the taxonomy description easily by using [wpv-post-taxonomy type='fartyg' format='description'] but have no clue on how to show my custom term fields for the same taxonomy.
The slugs/names of my custom taxonomy term fields are: "fartygsinfo-gt", "fartygsinfo-langd" etc.
I've tried [wpv-taxonomy-field name="wpcf-fartygsinfo-gt"] but that gives me nothing at all.

Is there any documentation that you are following?
I've looked at the support forum and also looked for available shortcodes to be used.

What is the link to your site?
The site is behind login.

#2798461

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Taxonomy custom fields or view is not supported with Block view mode.

What you should do is create a taxonomy view in classic mode. You can enable the legacy version of the view by following the instructions given with the following Doc:
=> https://toolset.com/course-lesson/enabling-legacy-version-of-toolset-views/

Then go to Toolset => Views and and add a new view and set your view to query your desired taxonomy and within the view's loop editor section you can add the taxonomy custom fields.

More info:
=> https://toolset.com/documentation/displaying-wordpress-term-fields/#displaying-term-fields-with-views-without-writing-any-code

Once you build your taxonomy view that should display the taxonomy term fields, you should try to add the "Fields and Text" or shortcode block and add the taxonomy view using the view's shortcode:

[wpv-view name="your-taxonomy-view-slug"]