lukeshumard on "Retrieve Taxonomy slug(s)"
May 24, 2010 by David Olsen
The format of the link is in the opening post, that’s correct.
What I want is on an individual post template. I want the slug of whatever value that post has been tagged with to be displayed in the link. There’s only one value tagged in this taxonomy per post, so there’s no need to worry about lists.
For example, if this post has a “venue taxonomy value of “Gallery Fun”, then I want the link to be http://www.example.com/venues/gallery-fun. Also, the taxonomy name is “venue” not “venues”, so using get_term_link won’t work, nor would something linking to the actual taxonomy.
Is that clear? I know it’s a bit confusing and also not the typical use of a taxonomy, but it’s something I need to have done.





Comments
Facebook comments:
Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!