get_the_terms()
— получает элементы таксономии (термины), которые относятся к указанному посту (записи)$terms = get_the_terms( $post->ID, 'city' );
if( is_array( $terms ) ) {
foreach ( $terms as $key => $term ) {
echo '<a href="' . get_term_link( $term->term_id, $term->taxonomy ) . '">' . $term->name . '</a>,';
}
}