November 15, 2014 at 10:10 am #15380
For custom icons you must return the file name WITH the extension. For example if the icon is ‘workoffice.png’ then your code should be:
if (has_term(‘online-business’, ‘business-type’, $postid)) return ‘workoffice.png’;
I think that may be why you’re getting the default icon instead of workoffice.png.