Skip Navigation

[Résolu] Show an icon assigned to a category

This support ticket is created Il y a 5 années et 1 mois. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 réponses, has 2 voix.

Last updated by Jaime Il y a 5 années et 1 mois.

Assisted by: Luo Yang.

Auteur
Publications
#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!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.