Iain Urquhart



Fetches the entry_ids of a node's immediate children.

{exp:taxonomy:get_children_ids tree_id="1" entry_id="{entry_id}"}

Example output:


Tag Parameters



The id of the tree you want to fetch. This is a required parameter.



The entry_id of the node being requested. This is a required parameter.

Example Usage

The example below shows how we use the tag to pass the entry_ids of the current page's children into an embed to display teaser information for those child pages.

{exp:channel:entries limit="1" disable="categories|member_data|pagination"}
  {embed='includes/.teasers' entry_ids='{exp:taxonomy:get_children_ids tree_id="1" entry_id="{entry_id}"}'}

In the embedded template 'includes/.teasers' we would call the exp:channel:entries tag with the fixed_order parameter: fixed_order="{embed:entry_ids}" to keep the order in check with Taxonomy. It also uses Taxonomy's {exp:taxonomy:node_url} Tag to fetch each entries url.

<h3>In this section</h3>
{exp:channel:entries fixed_order="{embed:entry_ids}" dynamic="no"}
	<li><a href="{exp:taxonomy:node_url entry_id='{entry_id}' tree_id='1'}">{title}</a></li>

Want to say 'thank you'?

If you find any of my work useful, feel free to make a donation amount of your choosing via PayPal — or if you like, purchase a copy of Introvert from Devot-EE and you'll get something in return :)

↑ Back to top