Is it possible to add multiple images for a category in wordpress?
I’ve seen this plugin that allows you to add a single image per category.
I would actually like to add 2 images per category. One for its header, and another one for its menu thumbnail.
Any recommendation?
Yes, it can be done.
One way is a bit long, and it involves
loop;
.. it would require a very long answer.
But – there is a hack that would help you do it, although not as dynamic as the above one. ( although – read below it can be made dynamic as well )
what you do is basically put images with the category name like
bananas.jpg
,pears.jpg
,apples.jpg
, and thenof course, in your case you would do bananas-head.jpg, pears-head.jpg, apples-head.jpg , and then
bananas-footer.jpg
,pears-footer.jpg
,apples-footer.jpg
etc etc.. you get the picture ( no pun intended ).Of course, like said before, it is not so dynamic, but it can easily be converted to one by using special theme settings, where one upload an image for each category, and the theme just grabs the category image by taxonomy ID …
Yes you can upload multiple images using https://wordpress.org/plugins/categories-multiple-images/ plugin. Please check and let me know.
Thanks!