WP Otrzymuj taksonomię terenową

<?php $terms = get_field('tech_choices');
$cat_icon = get_field('creative_icon', $queried_object); ?>
<span>
	<?php if( $terms ): ?>
	<ul>
		<?php foreach( $terms as $term ): ?>
		<li><a href="<?php echo get_term_link( $term ); ?>"><?php echo $term->name; ?></a></li>
		<?php $icon = get_field('creative_icon', $term->taxonomy . '_' . $term->term_id); echo $icon; ?>
		<?php endforeach; ?>
	</ul>
	<?php endif; ?>
</span>
Weary Wildebeest