Drupal Taxonomy Terms From CCK Taxonomy


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. $i = 0;
  3. $limit = count($field_field_of_interest);
  4. while ($i <= ($limit-1)) {
  5. $tags[] = l($field_field_of_interest[$i]['view'], 'taxonomy/term/'. $field_field_of_interest[$i]['tid']);
  6. $i++;
  7. }
  8. if ($field_field_of_interest){
  9. print t("Fields of Interest") . ": " . implode(' | ', $tags);
  10. }
  11. ?>
  12.  
  13. <br />
  14.  
  15. <?php
  16. $i = 0;
  17. $limit = count($field_professional_area);
  18. while ($i <= ($limit-1)) {
  19. $tagsTwo[] = l($field_professional_area[$i]['view'], 'taxonomy/term/'. $field_professional_area[$i]['tid']);
  20. $i++;
  21. }
  22. if ($field_professional_area){
  23. print t("Professional Area") . ": " . implode(' | ', $tagsTwo);
  24. }
  25. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.