How To taxonomy term count using views ?

  0 comments
Share

Today i am writing blog over, how to count a taxonomy term through views in drupal 7 with easy steps.

Step 1:

Download Views

Download ctools

Enable both modules.

Step 2:

Create Taxonomy Term and add the term.

Taxonomy Aggreator Image

Create Content type with this taxonomy, which you have created.

taxonomy Aggregator Img2

Post some content through this content type.

Step 3:

Create a new View.

Give the title of view.

Select Taxonomy Terms from Show.

taxonomy Aggregator Img8

Check the box of Create a page or Create a blog.

Click on Save & continue button.

Step 4:

Click on Advanced link

Find Use aggregation make it Yes from no.

taxonomy Aggregator Img3

Now click on Aggregration Setting from Field.

Select Group results together from Aggregation Type

taxonomy Aggregator Img4

Add a field Taxonomy term: Name again.

Select Count from Aggregation Type

Uncheck box of Create a label .

You can giv prefix and suffix to show something like this Test(5)

taxonomy AggregatorImg5

Step 5:

Click on Add button of Relationships from Advance

taxonomy Aggregator Img6

Select Taxonomy term: Content with term

Click on Add and configure relationship button.

Check the box of Require this relationship .

Click on Apply (all display) button.

taxonomy Aggregator Img7

Add new comment