In Taxonomy View, how do I get the count of relationships associated with that term


You can solve this two ways:

  1. You can create a view of nodes, create a relationship to their taxonomy term, and display the terms. This will only display terms that can be pulled up through a node by views.

  2. You can keep your taxonomy display and add a relationship. Add "Taxonomy: content with term" and the check the box labeled "Require this relationship". This will give you duplicates so you also need to go down to "Query Settings" and check the box for "Distinct".

Similar questions

Views trying show term node count/comment count/latest post
I got a taxonomy called forum and several terms. I crated a view to show the terms In the display I'm trying to show Term Name | Content Count | Comment Count | Latest Topic. I got all of that data cells showing but I can't get the proper Comment Count (I want to show a total of all comments from all posts) and to show ...
How to get the view count of taxonomy term pages in Drupal 8?
I'm running Drupal 8.3. Statistics module can count views of a node. But is there a way to find out view count of taxonomy term pages? I'm looking for how many times a taxonomy term page is viewed, but not the count of how many times a taxonomy term is used in nodes. Edit: In short, I'm looking for a similar module as below for Drupal 8. https://ww...
View | So taxonomy terms plus some links associated with current taxonomy page
I have made a view that show taxonomy terms. What i want is show Taxonomy terms plus some content with. ex. I have Auto Manufactures like How i can make a view that shows taxonomy terms and include some content links. The content links is pages that use a taxonomy field.
Taxonomy Terms node count of different content type along with zero count in a hierarchy
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. Under format option sele...
Taxonomy menu - link to first node associated with term?
I have a taxonomy menu block using the vocabulary 'Projects' that links to the terms: 'Bridges', 'Buildings' and 'Boats'. Currently, each menu item links to a page that lists teasers of all the nodes associated with the menu term. For example, I click on 'Buildings' and it goes to a page with teasers of all nodes associated with 'Buildings'. How co...
Display a flag link in views based on whether the node has an associated taxonomy term
All of my nodes of a certain content type are given a category by assigning a taxonomy term. I would only like to add the flag, "My Fruits" if the content has the term "Fruit" assigned to it. So far I've attempted using a views PHP field to add the flag: This works to simply print the flag: But this, I'm not able to get working: Any ideas would be ...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.