We have a Wordpress blog that has hundreds of different categories. What I need to do is based on one specific category and it's child, I need to display an image. I'll try to illustrate it to make it a little easier.
• Category Main
o Subcat 1
o Subcat 2 <---I need to show the conditional on this subcat
o Subcat 3
o Subcat 4
I did dump the category using the code below and the category ID, I'm seeking is in the 2nd part of the array. I'm guessing because it's the 2nd category in line.
Any help is appreciated with points! :)
$categories = get_the_category($post->ID);