• hi;
    how can i display the tags with no links and special html to use it in the header title :
    <title>tags</title>

Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php
    $alltags = get_terms('post_tag');
    if ($alltags){
     foreach( $alltags as $tag ) {
    echo '<p>' . $tag->name . '</p>';
    }
    }
    ?>

    See Function_Reference/get_terms

    Thread Starter taghaboy

    (@taghaboy)

    hi
    thanks for your reply,
    the code print all the tags i used, but i’d like only to show the tag i used in the post.
    Thanks for the help

    This is exactly what im trying to do as well.

    Anybody else have any ideas?

    I want to be able to use the custom taxonimies (tags) that are on the current post as call names so dont want them wrapped in Anchor links or any other html/css.

    Is this possible?

    Thanks guys

    $taxonomy='post_tag';
    $terms = wp_get_post_terms( $post->ID , $taxonomy, '');
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display the tags’ is closed to new replies.