automatically set random featured image by category in wordpress on post
You should prepare an array of images ids for each category and pick one of them randomly. I say “one of them” since the featured image is always 1 if I understood well your question.. which is somehow ambiguous when you say set an image and later to have more than one feature image So, … Read more