Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 846283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:35:21+00:00 2026-05-15T06:35:21+00:00

I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I

  • 0

I have a simple one level deep vocabulary taxonomy. Something like Vocabulary->Term->Node. What I want to know is if there’s a built in function to get an array of nodes related to a single term, something like taxonomy_select_nodes() but that would return an array of nodes instead of a string.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:35:21+00:00Added an answer on May 15, 2026 at 6:35 am

    AFAIK, taxonomy_select_nodes() is the closest one available – and it does not return a string, but a query resource, so you could do what you want somewhat like so:

    function yourModule_get_nodes_by_term_id($tid) {
      $nodes = array();
      // NOTE: Will lookup by only one term, and only one level deep here!
      $result = taxonomy_select_nodes(array($tid), 'and', 0, FALSE);
      $items = array(); 
      while ($row = db_fetch_object($result)) {
        $nodes[] = node_load($row->nid);
      }
      return $nodes;
    }
    

    The performance could get pretty bad for large numbers of nodes, though :/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Asp .net page like this simple one http://issamsoft.com/app2/page1.aspx and I want
I have a simple one-to-many relationship. I would like to select rows from the
I know zero javascript, and have one simple task: Find all text in the
This will hopefully be a simple one: I have a div I want to
So I have some nested lists (only one level deep) and I'm running into
I have to create a simple, one-level menu in an ASP.NET website clicking on
I have a silverlight navigation application. I am looking for a simple one level
I have created a simple reprot with one level of XML data, and followed
I have a pretty simple structure that looks something like this: var list =
I have simple database - one table with 6 collumns. 3 of them i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.