I have a single-events.php and in there i want to show the tags on that post.
I have tried using this but nothing comes up.
I have put it within the loop but still nothing.
This is my code
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<h2>Tags</h2>
<?php the_tags(); ?>
<?php endwhile; // end of the loop. ?>
Am i missing something?
post_tags
and not a custom taxonomy?register_post_type()
code as well. We need to know what taxonomies your CPT supports.