Getting/using the slug of taxonomy…
-
I’m either not understanding what I’m finding in search or not applying what I read correctly, but I’m trying to get the slug and use it to get a match in a query.
Right now I’m using:
$tag = single_tag_title(“”, false);However, the gets me the title of the term, which has some issues with apostrophes. I’d like to just get the slug.
I’ve tried get_term and get_terms_by, but they don’t work, or I’m not using them correctly.
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting/using the slug of taxonomy…’ is closed to new replies.