I'm trying to display the taxonomy slug from the term ID, thus my current code is like so:
<?php $catinfo = get_category(array_pop(get_sub_field('sector_selector'))); ?>
<?php print $catinfo->slug; ?>
which isn't printing anything, a var_dump($catinfo);
produces the following:
array(1) { [0]=> int(59) }
In theory <?php print $catinfo->slug; ?>
should print the taxonomy slug, but it isn't? Any suggestions would be greatly appreciated!