Get Term Link for current post
-
My Google fu has failed me. I’m not a PHP guy, and pretty much rely on dissecting code samples in the codex, but I can’t seem to get the get_term_link(); function working for me on a single post view.
I have a custom taxonomy on a custom post type. I want to link to other custom posts that have the same taxonomical value. No idea. I just want to link to the taxonomy archive where the term is as it is on the current post (so I think ID should work here).
This is how easy I think it should be (where series is the name of the custom taxonomy):
get_term_link($post->ID, 'series');I feel like this should be a simple thing, and I’m probably being a n00b here.
The topic ‘Get Term Link for current post’ is closed to new replies.