Skip Navigation

[Resolved] Display custom taxonomy field contents in a taxonomy archive

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to display a term field in a term archive.

Solution: Use the Fields and Views button to insert a custom term field in your Layout or WordPress Archive.

[types termmeta="my-text-field"][/types]

Relevant Documentation:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield

This support ticket is created 6 years, 3 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by liatG 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1109628

I am trying to display the text of a custom taxonomy field in a taxonomy archive. I want to display the contents of a custom taxonomy field "tax-section-header" at the top of my taxonomy archive layout.

I'm following the documentation at https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive. I'm able to display fields like "description," but I don't want to use that field because the description also shows up in my page header.

Is there a way to display a custom taxonomy field on my taxonomy archive? I tried 'info="tax-section-header"' but it didn't display anything (not surprised).

Thank you,
Liat

#1110639

The Types termmeta field shortcode can be used to display a custom field value on the archive Layout. We have documentation and examples for the termmeta shortcode here:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield

[types termmeta="my-text-field"][/types]
#1110691

Thank you so much! This is exactly what I was looking for to show this field at the top of my layout.

I got freaked out when I went to look at the documentation and the PHP stuff but when I realized I just had to put that shortcode into my layout with my field slug... no problem!

Thank you for making it so easy for me to make my fields and site work the way I want.