I want to display the tags of the current post in the single.php and do the following:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1 class="single_h"><?php the_title(); ?></h1>
<p class="single_subline"><?php echo get_post_meta($post->ID, 'subline', true) ?></p>
<!-- everythings fine til here -->
<p class="single_tags"><?php echo wp_get_post_tags($post->ID); ?></p>
<?php endwhile; endif; ?>
and everything just works fine, except the wp_get_post_tags
method. All I get displayed inside the .single_tags
is the string Array
.
I am new to wordpress and would like to know what I am doing wrong.
Thanks
the_tags()
?