How to display custom taxonomy

Once you have created custom taxonomies in WordPress, the next step is to display them on post pages. Fortunately, this is a matter of adding the following single line of code to the single.php (located in the theme folder):

<?php the_terms( $post->ID, ‘topics’, ‘Topics: ‘, ‘, ‘, ‘ ‘ ); ?>

By default custom taxonomies use the archive.php template to display posts. However, you can create a custom archive display for custom taxonomies by creating taxonomy-{taxonomy-slug}.php,where taxonomy-slug refers to slug of custom taxonomy.

I have found it here https://www.wpblog.com/create-custom-taxonomies-in-wordpress/