Category image not displayed

Posted in: Newspaper
Post count: 3

Hello,

after playing around with Custom Post Type UI and relating WP Core categories with a Custom Post Type, I cannot upload anymore an image for a specific category over Posts->Categories. I can upload images over CPT->Categories, but they are not shown if I want to display them with the subcategories shortcode on a category page. What can I do?

Category image upload and color asssignment NOT shown (normal post):
https://danielbergstein.com/wp-admin/edit-tags.php?taxonomy=category

Category image upload and color assignment shown (CPT):
https://danielbergstein.com/wp-admin/edit-tags.php?taxonomy=category&post_type=uebung

Subcategory images not shown:
https://danielbergstein.com/category/mein-yoga

Thanks for help

Post count: 27744

Hi,

You can set category images in the theme panel for each category in part -> https://i.imgur.com/hj9E9sd.png. Those can be displayed on the Category Background Image element (on categories).

I hope this will help you!
Thank you!

Post count: 3

Hi,

thank you for your answer but I think there is a bug with the theme. As you can see here https://ibb.co/jw28Qfj if I try to upload a category image from Posts–>Category (Beiträge–>Kategorien), I cannot choose a color and there is no upload field for an image. If I do the same from Custom Post Type–>Category (Übungen–>Kategorien) as you can see here https://ibb.co/QcXFRkW I can choose a color and there is an upload button, but these images are not shown in the subcategory shortcode.

If I set the category image like you mentioned before from the control panel the image is shown correctly in the subcategories shortcode but I see it also in the top left corner and I cannot remove it in the visual composer…

https://danielbergstein.com/category/mein-yoga
https://danielbergstein.com/category/mein-yoga/bewusstsein

Can you help? If you want I can give you access to my Site

Thank you

Post count: 27744

Hello,

There is a little difference because it applies to the categories of posts, and for CPT it is implemented differently.
Also, to be able to customize, please use cloud templates and after you can set the image as you want -> https://forum.tagdiv.com/cloud-library-category-templates/ -> https://cloud.tagdiv.com/#/single/category/Category/1164

Thank you!

Post count: 3

Hi,

now It works fine. I removed the images from CPT->Categories and uploaded them in the theme panel. You should remove the possibility to upload images from CPT->Categories, if Categories are assigned to a CPT otherwise it comes to an error displaying the images in the theme.

Thank you and have a nice day

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.