iLexN
9/6/2017 - 1:48 AM

get taxonomy term example

<?php

//Get list for taxonomy by machine name :
$vocabulary = taxonomy_vocabulary_machine_name_load('newsletter');
$all_newsletter_terms = entity_load('taxonomy_term', FALSE, array('vid' => $vocabulary->vid));
taxonomy_get_parents_all($tid);

//section term
$section_vocabulary = taxonomy_vocabulary_machine_name_load('section');
$section_tree = taxonomy_get_tree($section_vocabulary->vid, 0);


$scmp_application = taxonomy_get_term_by_name('SCMP.com', 'application');