Simple way to pull taxonomies
here is an example of pulling all the terms in a vocabulary

$vid = taxonomy_vocabulary_machine_name_load("catalog")-&gt;vid;
//print($vid) . PHP_EOL; prints the vocab ID
$terms = taxonomy_get_tree($vid);
//print($terms) . PHP_EOL; prints "Array" if a vocab was grabbed
foreach ($terms as $term) {
   print($term-&gt;name) . PHP_EOL;
}