Retrieve Taxonomy Term by Field in D7
You can use EntityFieldQuery,

Here is the sample code,

$query = new EntityFieldQuery();

$query-&gt;entityCondition('entity_type', 'taxonomy_term')
  -&gt;propertyCondition('vid', 1) // change 2 to any vocabulary ID
  -&gt;fieldCondition('field_test', 'value', 'test');
$terms = $query-&gt;execute();


First param to fieldCondition is the field name, second one will be the column name for example for text fields column name is value and for term reference field tid, then the final one is to specify the value. Hope this helps.