Guest User

Untitled

a guest
Jun 29th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $tags = get_tags();
  3. if ($tags) {
  4. foreach ($tags as $tag) {
  5. echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
  6. }
  7. }
  8. ?>
  9. <?php
  10. $tags = wp_get_post_tags($post->ID);
  11. if ($tags) {
  12. foreach($tags as $tag) {
  13. echo '<p>' . $title . '<a href="' . get_term_link( $tag, 'post_tag' ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> has ' . $tag->count . ' post(s). </p> ';
  14. }
  15. }
  16. ?>
Add Comment
Please, Sign In to add comment