Ready to get started?Download WordPress


query variable for terms (3 posts)

  1. digitalnature
    Posted 4 years ago #


    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":

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

  2. MichaelH
    Posted 4 years ago #

  3. digitalnature
    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