How can i get all node ids that has the same tag.
Thanks
How can i get all node ids that has the same tag. Thanks
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You also can use the taxonomy api.
For example, if you know your taxonomy term id (tag id) you can use the function
taxonomy_select_nodes
If you now the name of the tag and no the id you can use the function taxonomy_get_term_by_name
http://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_select_nodes/7