Im trying to get nodes related to a node in my module

i found https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_select_nodes/7

its only accepting 1 TID ... i mean 1 term for query related nodes

i want to pass all node terms and find related nodes by TERMS not TERM ... (some kind of aggregate query)

plz help

  • Why don't you just loop thrue all your terms then? foreach ($voc as $term({$nodes[] =taxonomy_select_nodes($term)}
    – Akko
    Jan 18, 2015 at 12:04
  • Yeah, just write a wrapper taxonomy_select_nodes_multiple_terms($array) that loops through your array and calls the function you describe above.
    – Robin
    Jan 18, 2015 at 14:00
  • @Robin u both fail ... i want to get similarity by the score of included tags ... you know what is similarity? Jan 19, 2015 at 13:20


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.