Skip Navigation

[Resolved] Display Custom Term Fields without using a View

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

Problem:
The issue here is that the user wanted to display their custom field taxonomy terms without using views, on specific pages.

Solution:
Unfortunately not, the only way it would be possible is if you are on that Term's archive page. This is because the shortcode requires the ID of term to display the information.

If you know the term ID you can manually provide the shortcode with the ID and it will display, example.

[types id='12345' termmeta="my-textarea-field"][/types]

I would highly recommend the use of our views plugin for this.

This support ticket is created 5 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by Ben 5 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#1157895

Ben

Is it possible to display Custom Term Fields without using a View, like the way you can display Custom Fields from a Post just using a shortcode?

#1157970

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Thank you for contacting our support forum.

Unfortunately not, the only way it would be possible is if you are on that Term's archive page. This is because the shortcode requires the ID of term to display the information.

If you know the term ID you can manually provide the shortcode with the ID and it will display, example.

[types id='12345' termmeta="my-textarea-field"][/types]

Please let me know if this helps.
Thanks,
Shane

#1158037

Ben

Thank you for your reply and advice Shane!

So in most cases it would be easier to use a View then I'm taking it?

But I was under the impression that I can't use a view to target the current post only. Or can I do this?

I am just trying to display custom term fields on the respect archive pages.

#1158096

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Ben,

Yes it would be much easier, especially in cases where you have multiple taxonomy terms.

It allows you to have an automated process rather than a manual one.

Yes you can use the view to target the current post only.

Add the query filter to your view called "Taxonomy Term" then you should be able to see the option to filter for the current page only.

Thanks,
Shane

#1158605

Ben

Thank you very much Shane. I got it now!