Found a solution:
This code snippet shows the tags (with the links) for the current page (blogpost).
example:
#tag1 #tag2 #tag3 ... tagx
With the if-statement, exclude the virual tag _post and empty tags, from the list of tags from the current page.
See the result at the bottom of this blogpost (or another blogpost on the website).
Code:
<?php
$keywords = get_page_meta_keywords(false);
$keywords_array = array_map('trim', explode(',',$keywords));
foreach($keywords_array as $item){
if (($item != '_post') AND ($item != '')) {
echo '<a class="single-post-tag" href="/tags/?tags='.$item.'">#'.$item.'</a> ';
}
}
?>
This code snippet shows the tags (with the links) for the current page (blogpost).
example:
#tag1 #tag2 #tag3 ... tagx
With the if-statement, exclude the virual tag _post and empty tags, from the list of tags from the current page.
See the result at the bottom of this blogpost (or another blogpost on the website).