Hi there - I would like to show a list of tags on a post but without a link on the tag. Right now I use:
<?php the_tags( '<li>', ', ', '</li>'); ?>
How do I strip the link from the tag?
Hi there - I would like to show a list of tags on a post but without a link on the tag. Right now I use:
<?php the_tags( '<li>', ', ', '</li>'); ?>
How do I strip the link from the tag?
From the Wordpress Codex:
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
?>