I am trying to output all the tags (custom taxonomy) without link, and add special class to current post tags.
For example: if there are 10 tags but current post has 3 of them applied, then it should display all the 10 tags without link but only 3 tags should have special class.
I am currently using:
$terms = get_the_terms( $post->ID, $tax );
$tag_list = implode(',', wp_list_pluck($terms, 'term_id') );
wp_tag_cloud( array( 'taxonomy' => $tax, 'include' => $tag_list) );
which is just showing tags with link for current post.