terms

Batch processing the insert of vocabulary terms.

  1. foreach ($filesArray as $fileName) {    
  2.         //This opens up the file
  3.                 $xml = file_get_contents($dirLoc . $fileName);
  4.         //This creates the simple xml object   

Show node parent terms

  1. <?php
  2. // split out taxonomy terms by parent
  3. function bowwowtheme_liquid_print_terms($nid) {
  4.   $terms = taxonomy_node_get_terms($nid);
  5.   $links = array();
  6.   $processed = array();
  7.   if($terms){
Syndicate content