By field4000 on
For the life of me, I am unable to get contemplate to display my taxonomy term.
I can get it to print the whole path, for example: <?php print $node->path ?> works - returns the whole taxonomy path.
<?php print $node->taxonomy[9]->name ?> does not work - returns only the first node's taxonomy term.
Any ideas or help would be much appreciated.
Comments
Code snippet
This seems to work for me:
foreach ((array)$taxonomy as $item) print $item->nameIt works for me as well.
It works for me as well. What would I add to make it an active link?
Thanks in advance
This worked for me...
Works
Here's another version I found from another post:
But how do you add spaces?
[ D6 ] Printing the Taxonomy Listing
I am using this snippet to replicate how Drupal [ 6 ] writes out it taxonomy listing
Please note: Drupal also adds an extra class to the first and last list items [ 'first' and 'last' respectively ] which I haven't added to this example as I don't need them.