Hi everyone,
Is there a way to determine the taxonomy term for a node being viewed. Been searching all over to no avail.

Thanks

Comments

DL’s picture

try mousing over the link, then look at the bottom left corner for taxonomy term details

eyedol’s picture

I meant in terms of coding. Thanks

stevenpatz’s picture

Do a
SELECT * FROM term_node s

which will show you what tid a nid belongs to.

and then in your code do a select sorta like this:

SELECT * FROM shared_term_data s where tid=$tid
echo $name;

Would display the Actual Term Name.