Skip Navigation

[Resolved] Unable to display taxonomy custom image field on the front end

This support ticket is created 2 years, 4 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 4 replies, has 2 voices.

Last updated by J_MG9702 2 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#2472091

I have a custom taxonomy that I have made a custom wysiwyg field for each category in this taxonomy. I previously was able to use the wp description field for this, but in the last few weeks the wysiwyg editor for that field is not not there, so I came across some toolset support tickets saying to just make your own custom field. I have that field created and when I try to bring it to the front end to display, the fields and types shortcodes will only display the name of that sub-category under this custom taxonomy. It will not actually show what is in this field. I have it set to show that "badge-icon" but it just shows the linked taxonomy name. I have always been able to do this easily, I even have it working on this site under another custom taxonomy that I set up a couple months ago and now the functionality is not there at all and these work arounds are not working... Not sure where the issue is.

#2473243

Hello,

Where and how do you display the custom taxonomy image field?
Can you reproduce the same issue in below test site?
hidden link
I need a live website to debug this issue, thanks

#2473583
Screen Shot 2022-10-10 at 12.52.09 PM.png
Screen Shot 2022-10-10 at 1.03.02 PM.png
Screen Shot 2022-10-10 at 1.02.09 PM.png

Hi Luo, glad to have you helping us again!

So I set up what I am experiencing in the sandbox site for you.

In this sandbox, I have a custom taxonomy I created "Tests" and it is associated with Posts for this site (my custom taxonomy is associated with a CPT on my site, but the site has the same issue so I don't think that matters.)

This taxonomy is meant to have 3 subcategories that each have an image associated with it that I can display on the "posts" (or CPT in my actual situation) front-end view. The front-end will display only the category associated with that post.

In the last few weeks, any new taxonomy created and some that were previously created, do not show the WYSIWYG editor for the default taxonomy category description field. (see screenshots). So I followed a toolset forum work around that suggested I create a new custom field to hold the image. These custom fields do work to hold the image, but as you will see, they only display the name of the category. They will not show the contents of the custom field.

In previous sites, all I needed to do what insert the fields and views shortcode for the taxonomy description field and the contents were displayed. Not the name of the category...

Trying to just create a basic shortcode for the taxonomy field or trying to loop through it with Views does not let me access any custom fields for custom taxonomies... I would think there would be an option for that is created.

I added Divi theme to the sandbox and views. I use both of them on all my sites, and I set it up using the theme builder to show the issue on the front end. You can access the "Posts" theme builder page under Divi Theme Builder where I have the toolset shortcodes set up for the issue.

SS #1 - another site of ours that shows the WYSIWYG editor correctly displaying for a taxonomy category description field.

SS #2 - the new custom taxonomy created on the sandbox site that shows the default category desc. field does not have the WYSIWYG editor

SS #3 - the basic options when trying to access taxonomy fields or content. Nothing there for custom fields.

Hope that was clear enough. Thank you for your support!

#2473785

Thanks for the details.

I assume you are going to do these:
In the single post, displays assigned "Tests" taxonomy terms information.

If it is, it just need a taxonomy view, I have done below modifications in the test site:
1) Create a taxonomy view:
hidden link
- Query "Tests" taxonomy terms
- Filter by:
Taxonomy is set by the page where this View is inserted
- In view's loop, displays term information:

              	Tests taxonomy term link: [wpv-taxonomy-link] <br />
				icon-image:[types termmeta="icon-image"][/types]
				icon-wysiwyg:[types termmeta="icon-wysiwyg"][/types]

2) Edit the post "Demo for Tests 1":
hidden link
Choose above taxonomy view

3) Test it in frontend:
hidden link
It works fine, all taxonomy fields are displaying correctly. Please check if it is what you want. thanks

#2474225

My issue is resolved now. Thank you!

This helped me figure out where I went wrong with implementing this on my site. I had tried to set up a view as you showed me in the sandbox site, but I was not aware that filtering by "taxonomy term" would then allow me to select filter that term by page it was on... I was not initially seeing that a taxonomy could be filtered by page in that way because to me that is "buried" information. Like Luo said "filter by page" but it is not obvious that you have to click filter by taxonomy term first and then you can select by page... Just clarifying for anyone else who may also come across this same issue.

Appreciate the help though in getting the issue resolved!