codehaven - php snippets - coding help
Generic filters
Exact matches only

Show default category image

6th June 2014

Wordpress - Show

wordpress category

It allows you to have a default feature image for a category on a wordpress post. So I’ve got categories called ‘Dogs’ and ‘Cats’ and this code allows the default feature image for any post in these categories to have a picture of an Dog or a Cat. I’ve also used it on the ‘uncategorised’ category, so they all have a basic placeholder thumbnail.

Added By Dan

Was this code snippet helpful?