Just like the title says. I have a vocabulary with several terms. I'd like to be able to get all items tagged by each of the terms in the vocabulary sorted by date created in one giant list. Is this possible with the built-in taxonomy API or am I going to have to build something custom?
Drupal 7: Get all content items attached to all terms in a vocabulary sorted by date
1k views Asked by LoneWolfPR At
2
When you say 'items' if you mean nodes then the function you are looking for is taxonomy_select_nodes(). https://api.drupal.org/api/drupal/modules%21taxonomy%21taxonomy.module/function/taxonomy_select_nodes/7
This function returns an array of node ids that match have the term selected.