I have a category page on my wordpress / woocommerce site that lists all of the prouct categories and the number of products that are in that category.
I think this is generated by content-product.php
Currently a placeholder is displayed but I would like to change this to an image.
What I want to do, for each of the categories, is randomly select and display an image from that category instead of the placeholder.
I've search on StackOverlflow and all over the net but I can't find an answer. Could someone point me in the right direction please? I can then try and write some code and see how far I get.
Thanks in Advance.
Something like this should work:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.