views:

30

answers:

1

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?

A: 

From the Wordpress Codex:

<?php
  $posttags = get_the_tags();
  if ($posttags) {
    foreach($posttags as $tag) {
      echo $tag->name . ' '; 
    }
  }
?>
espais