Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tags = get_tags();
- if ($tags) {
- foreach ($tags as $tag) {
- echo '<p>Tag: <a href="' . get_tag_link( $tag->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $tag->name ) . '" ' . '>' . $tag->name.'</a> </p> ';
- }
- }
- ?>
- <?php
- $tags = wp_get_post_tags($post->ID);
- if ($tags) {
- foreach($tags as $tag) {
- 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> ';
- }
- }
- ?>
Add Comment
Please, Sign In to add comment