WordPress.org

Ready to get started?Download WordPress

Forums

Getting the tag on an archive page (2 posts)

  1. Rebecca Schaefer
    Member
    Posted 5 years ago #

    So if I have site.com/tags/my-tag

    How do I dynamically get "my-tag" for use? There has to be some kind of function for this in WP.

  2. MichaelH
    Member
    Posted 5 years ago #

    Assuming you mean some variable to use such as:

    $term_id = get_query_var('tag_id');

    http://wordpress.org/support/topic/244768?replies=4#post-990086

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags