By r00tk1ll on
How can I get the taxonomy "term" from the $taxonomy array. So far I have:
foreach ( $taxonomy as $key => $val )
{
print "$key
";
}
put this only prints strings like:
taxonomy_term_13, etc.
How can I get the actual word associated with this taxonomy?
I know I can use the $terms variable but that gaves me a HTML link, which I dont need, I just need a way to get the plain text word associated with this node.
Help please!!
Comments
If you have a node
You don't mention the context you are trying to do this in but if you have a node variable this should help
Perfect that is exactly what
Perfect that is exactly what I needed, your awesome. Here is what I ended up with:
Print Single Term
Can this snippet be adjusted to only print a single term or a selection of terms?
I would also REALLY Like to
I would also REALLY Like to be able to print only a specific vocabulary if that's possible
if (term->vid ==
if (term->vid == <yourvocabularyid>);if i am not mistaken
Ah great i was looking for
Ah great i was looking for something similar =D