After much headache I was able to maintain a kind of hierarchy for the taxonomy terms, of the already continuing issue here, please click the below link

Taxonomy Terms node count of different content type

I did It like this, but still needs to do more.

In second step select the parent relation and check the exclude display. screenshot

Under format option select the parent taxonomy under group 1

enter image description here

I am getting the parent category under tag and the child terms as list-terms. using jquery I can display it in an accordion style somehow.

enter image description here

Now the problem i am facing is that empty taxonomy terms with counter zero are not getting displayed, please help if anyone knows the solution.

1 Answer 1


Check what you have set for the "no results" behaviour on that field. You will not want it set to "hide".

Also check if it displays in the views preview. If it displays there but not on your page then it may be that your template is checking if a field is blank and before deciding whether to show it - you could solve this by setting a default/no results value of "0"

  • I unchecked the check box "Hide if empty" for this particular field but unfortunately empty terms are not shown, even not in view preview.
    – Mudasir
    Dec 12, 2013 at 12:44
  • Try entering "0" (zero) in the "no results behaviour text" box. This should put the number zero when there are no results rather than just not displaying the item. Not sure if this will not cause the number 1 to appear as there is now a value so test and see.
    – Keypad
    Dec 12, 2013 at 14:58
  • I tried with number "0" but nothing happens, may be some other way..
    – Mudasir
    Dec 12, 2013 at 20:46
  • Actually by adding reverse relation in relationships the empty terms gets hidden...
    – Mudasir
    Dec 12, 2013 at 21:06
  • Does anyone founds any solution for this....
    – Mudasir
    Dec 17, 2013 at 12:16

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.