Is it possible to retrieve an array of nodes that have a certain tid?

Comments

sdecabooter’s picture

Try:

taxonomy_select_nodes($array_with_tids);

Optionally this might be used within taxonomy_render_nodes() method:

taxonomy_render_nodes(taxonomy_select_nodes($array_with_tids, 'or', 0, TRUE));

See the API for further reference:
http://api.drupal.org/api/function/taxonomy_select_nodes/5
http://api.drupal.org/api/function/taxonomy_render_nodes/5

mokargas’s picture

Thanks for that Svendecabooter , I ended up using a DB query but this is a bit better for my purposes!

guldi’s picture

thx too. :)

nanL’s picture

Thanks !