Reply To: Custom Icon Per Term

Home Forums MapPress Support Custom Icon Per Term Reply To: Custom Icon Per Term

#15380
Chris
Keymaster

    Hi,

    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.