What file is responsible with tags displaying on the post? (NOT DISPLAYING) [ad_1]The tags are don’t show up on my [blog post])What file do I need to edit or how to fix this issue ? [ad_2] Previous ArticleSureCart 1.9 – Fatal Error Next ArticleNo Idea What I'm Doing & Website is Blank
I tried to add this in single.php:​$tags = wp_get_post_tags(get_the_ID()); if ($tags) { foreach ($tags as $tag) { if ($tag->description) { echo ‘<dt><a href=”‘ . get_tag_link( $tag->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $tag->name ) . ‘” ‘ . ‘>’ . $tag->name.'</a></dt><dd>’ . $tag->description . ‘</dd>’; } } }​also not working
Depending on the theme you’re using, you may have the option to display or hide tags for posts.
I tried to add this in single.php:
​
$tags = wp_get_post_tags(get_the_ID());
if ($tags) {
foreach ($tags as $tag) {
if ($tag->description) {
echo ‘<dt><a href=”‘ . get_tag_link( $tag->term_id ) . ‘” title=”‘ . sprintf( __( “View all posts in %s” ), $tag->name ) . ‘” ‘ . ‘>’ . $tag->name.'</a></dt><dd>’ . $tag->description . ‘</dd>’;
}
}
}
​
also not working