add a loop to display all taxonomy :
if (2 > count($locations)) {
echo '<strong>Location:</strong> '.$locations[0]->name.'<br>';
} else {
echo "<strong>Location:</strong>";
echo "<ul>";
foreach ($locations as $l) {
echo "<li>";
echo $l->name;
echo "</li>";
}
echo "</ul>";
}
.
other loop with all location on the same line
$stack = array();
foreach ($locations as $l) {
$stack[] = $l->name;
}
echo "<strong>Location:</strong>" . implode(";", $stack) . "<br/>";