WordPress.org

Ready to get started?Download WordPress

Forums

query variable for terms (3 posts)

  1. digitalnature
    Member
    Posted 4 years ago #

    Hi.

    Does anyone know the query variable I need to append to the URL to show to a specific term archive, like a tag?

    for example for categories this is "cat":
    http://mysite.com/?cat=147

    but I don't know which is it for tags.
    neither 'term' or 'term_id' work...

  2. MichaelH
    Member
    Posted 4 years ago #

  3. digitalnature
    Member
    Posted 4 years ago #

    yes, this works for tags when you have the tag slugs.

    I forgot to mention, I need this variable for any taxonomy term, not just tags (eg. like terms from custom taxonomies).

    Also I only have access to the term IDs, because I'm using wp_dropdown_categories which puts IDs on the dropdown options...

Topic Closed

This topic has been closed to new replies.

About this Topic