I'm trying to incorporate some primitive functionality on my WordPress blog. Basically I want to show a certain image based on the 2nd cat_ID in the $category array. Problem is, it's not working.
I can echo the ID I need, but my else/if isn't doing what I think it should be doing.
Any help is appreciated!
if($category->cat_ID == '1116') //skis.com
echo ('<a href="http://mydomain.com/">
<img src="http://content-1.s3.amazonaws.com/images/skis/tag-cloud.jpg" alt="Save On Packages" title="Save On Packages" width="250px"/>
elseif($category->cat_ID == '1452'); //snowboards.net
//This is my echo and it prints out fine.
$category = get_the_category();