I have really two questions in one. I have pathauto make a page for all my terms. I have something like this:


Anyway pathauto made pages for all the terms, so I have site/USA , site/USA/NY etc. I want to make it so that site/USA/NY has a link to it's parent which is site/USA. Is there any way to do this?

Another question, I'm also using the hierarchical select plugin to make a user select the deepest child possible (in this case just one level in). When a user tags content with NY, I also want that content to be tagged with USA, is that possible?

1 Answer 1


Node will have relation with the child term but there is no direct relation between the node and parent term.
So i think there are two ways to do it..

ONE : use node api and attached the parent term with the node.
TWO : while displaying the node fetch the parent term of the term and show them as well.

  • How do I do that?
    – qwertymk
    Commented Nov 9, 2011 at 14:28
  • which way you want to do it?
    – j2r
    Commented Nov 10, 2011 at 10:09
  • The one with the least PHP programming
    – qwertymk
    Commented Nov 10, 2011 at 13:36
  • It would be difficult to explain in code but with taxonomy api you should call the parent term in node tpl file.
    – j2r
    Commented Nov 17, 2011 at 6:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.