Skip Navigation

[Resolved] Show an icon assigned to a category

This support ticket is created 5 years, 9 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Jaime 5 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1208859
screenshot.jpg

Tell us what you are trying to do?
I would like to show an icon assigned to a category in a View

Is there any documentation that you are following?
No.

Is there a similar example that we can see?
Image attached

Any suggestions or help for how to do this?

#1209260
term-filter.JPG

Hello,

I suggest you try these:
1) Add a custom term image field to "category":
https://toolset.com/documentation/user-guides/term-fields/

2) Edit each term, and setup the value of image field.

3) In a single post content, create a taxonomy view:
- Query terms of "category"
- Filter by:
Taxonomy is set by the current post, see screenshot: term-filter.JPG
- and display the term image field value of step 1)
https://toolset.com/documentation/customizing-sites-using-php/functions/#image

#1210546

My issue is resolved now. Thank you!