Skip Navigation

[Resolved] Display WooCommerce Category Image Not Returning Image

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

Problem:

Display custom taxonomy image field in a single post.

Solution:

You can create a taxonomy view, list terms of "Product Category", filter by:
Taxonomy is set by the page where this View is inserted

In the view's loop, display the Product Category Image field.

Relevant Documentation:

This support ticket is created 6 years, 5 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 aprilA 6 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#1077663
Screen Shot 2018-08-08 at 4.28.46 PM.png
Screen Shot 2018-08-08 at 4.29.05 PM.png
Screen Shot 2018-08-08 at 4.29.18 PM.png

Currently I am trying to pull the category image and display it with Divi within a text module. When the Product Category Image field is selected, it returns a blank value. I have verified that the product I am display is assigned to that category.

#1078305

Hello,

The screenshot you mentioned above:
hidden link

Is it a single product post?
Are you going to display the category image in a single product post?
If it is, you need to create a taxonomy view, list terms of "Product Category", in the view's loop, display the Product Category Image field.

Please let me know if you need assistance for it.

#1078764
Screen Shot 2018-08-09 at 4.05.09 PM.png
Screen Shot 2018-08-09 at 4.05.20 PM.png
Screen Shot 2018-08-09 at 4.03.10 PM.png
Screen Shot 2018-08-09 at 4.03.30 PM.png
Screen Shot 2018-08-09 at 4.03.48 PM.png

Thank you for getting me one step closer. So I setup the new View that you had stated above, but I am getting duplicate category images. Even if a product doesn't have a category assigned the product page shows an image. Here are my current screenshots.

The one with 2 header images is when only 1 category is selected. When there is only 1 category image, no category is set. Any idea why I would be getting 2 category images when only 1 is assigned?

#1079435
taxonomy-filter.JPG

Yes, you need to add a filter in your taxonomy view:
Taxonomy is set by the page where this View is inserted

See screenshot taxonomy-filter.JPG

#1079672

Thank you for the help. My issue has been resolved.