$terms = get_the_terms(get_the_ID(), 'location');
if ($terms && !is_wp_error($terms)) :
$links = array();
foreach ($terms as $term) {
$links[] = $term->name;
}
$result = join(", ", $links);
?>
<p class="beers draught">
<strong>Location: </strong>
<?php printf(esc_html__('%s', 'textdomain'), esc_html($result)); ?>
</p>
Show Comments
