Show banner based on Category
I am trying to show a banner in the sidebard based on the category of the coupon using WPAds plugin.
I have the following line of code working, however no matter which category the coupon is assigned, it will always show a banner from the "Adult" group;
Code:
<?php echo wpads('get_the_term_list('Adult'); ?>
What I need is something that will report back the category which the coupon is assigned to - or the first category if there is more than one. I thought something like this would work, but have so far not managed to get it working;
Code:
<?php echo wpads('get_the_term_list($post->ID, APP_TAX_CAT)' ); ?>
Does anyone have any ideas?