Posted By

visualadvance on 01/04/10


Tagged

php wordpress tags all


Versions (?)

Wordpress: List all Tags


 / Published in: PHP
 

URL: http://wordpress.org/support/topic/280300

This is handy for listing out all the tags on your site.

  1. $tags = get_tags();
  2. if ($tags) {
  3. foreach ($tags as $tag) {
  4. echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
  5. }
  6. }

Report this snippet  

You need to login to post a comment.