Hello, I’m working with taxonomy, but my question is not directly related to Taxonomy but rather the embed feature in EE.
Basically, I’m embedding a template as shown here: http://iain.co.nz/taxonomy/tags/get_children_ids.html
the main code that’s not working is this:
{embed='global_embeds/sub_menu_tabs' entry_ids='{exp:taxonomy:get_children_ids tree_id="1" entry_id="{entry_id}"}'}when I pass a simple word like “test” it does fine. And when I simply print out the code…
{exp:taxonomy:get_children_ids tree_id="1" entry_id="{entry_id}"}it also displays correctly the string. But when I take that code and pass it into the embed variable, it doesn’t go through. It comes out in the embedded template as blank.
What I have to do to get it working is enable PHP on the template and pass it in like this…
<?php
$taxonomy_children_ids = "{exp:taxonomy:get_children_ids tree_id='2' entry_id='{entry_id}'}";
?>
{embed="global_embeds/sub_menu_tabs" entry_ids="<?php echo $taxonomy_children_ids ?>"}
Which seems very odd, I’d rather not have to enable PHP if I don’t really have to.