get_the_tags wordpress

Print out the tags


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

Advertisements