Display Article tags | WordPress.org

[ad_1]

Never mind. Figured it out. For anybody looking in future, this seems to work. It’s in the content-single.php file under the theme.

$terms = get_the_terms( $post, 'issuem_issue_tags' );
$posttags = apply_filters( 'get_the_tags', $terms );
if ($posttags) {
	$array = [];
	foreach($posttags as $tag) {
		$array[] = '<a href="/tag/' . $tag->slug . '/">' . $tag->name . '</a>';
	}
	echo "<h2>Tags: </h2><p>" . implode(', ', $array) . "</p><br>";
} else {
	echo "<script>console.log('No tags');</script>";
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer