By Equ on
Hi everyone!
I was looking for the snippet to display node terms from certain vocabulary and found this one:
<?php foreach ($node->taxonomy as $item) {
if ( $item->vid == 24 ) {
print '<li>'. $item->name .'</li>';
}
}
?>
Where vid is vocabulary id.
What I want to do is to create table cell and add vocabulary name. For example, if vid is 27 print <td>... vocabulary name... <ul><li>terms
I'm not much of a coder and I'd really appreciate any help. Thanks.
Comments
Anyone?
Anyone? :-(
_
I have no clue what you're asking-- can you maybe create a little text sample of what you're trying to create?
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Here is what I was looking
Here is what I was looking for:
Can anyone tell me how to use
Can anyone tell me how to use this but for the output to display as links rather than just text?
My new EasySnoozing, Nursing and BusinessEgghead websites on D7!