Try Below Code
function custom_taxonomies_terms_links()
{
global $post, $postid;
$custom_taxonomies = get_post_taxonomies( $post );
if($custom_taxonomies)
{
foreach ($custom_taxonomies as $custom_taxonomy)
{
// get post type taxonomies
$args = array(
'public' => true,
'_builtin' => false
);
$args['name']=$custom_taxonomy;
$output="names"; // or objects
$operator="and"; // 'and' or 'or'
$taxonomies = get_taxonomies( $args, $output, $operator );
$out = "<ul>";
foreach ($taxonomies as $taxonomy)
{
$out .= "<li>".$taxonomy.": ";
// get the terms related to post
$terms = get_the_terms( $post->ID, $taxonomy );
if ( !empty( $terms ) ) {
foreach ( $terms as $term )
$out .= '<a href="' .get_term_link($term->slug, $taxonomy) .'">'.$term->name.'</a> ';
}
$out .= "</li>";
}
$out .= "</ul>";
echo $out;
}
}
}
you can modify HTML tag placement in above code as per your requirement. Hope this will help you!