Drupal 7 Views: Display a Taxonomy term as its Term-ID number for a node I have a View that displays Nodes. Each of the nodes have a taxonomy term applied to it.
I would like this taxonomy term to be display as it's Term-ID number. How can I do this?

Steps I have tried

In relationships, I have added &quot;Content: Taxonomy terms on node&quot;. This is the only option for taxonomy terms in a node View. But it doesn't have options for accessing the term ID.

In fields, you can add a field to display the term on a Node. I have checked &quot;Rewrite the results&quot;. There is a token called Raw, but it only displays &quot;Raw Text&quot; as opposed to a number.
Here are few things you need.


In relationships, add Content: Taxonomy terms on node.
In Filter Criteria(I think this is the one you are missing), add Content: has taxonomy term and check the "is not empty(NOT NULL)".
In Fields: Add Taxonomy term: Term ID


PS: in step 2, you may pick other operator based on what you need.