0

I have to show all the tags and sort based on count. I am able to get the count of tag used by pages through views but not able sort based on count as this option is not available in views. Any suggestions?

  • Write a custom module? – leymannx Mar 17 at 19:53
3

It is possible with just core views.

  • Create a view that displays terms
  • enable aggregation
  • add relationship Content with term
  • add sort content uuid with aggregation type: count
  • add field content uuid with aggregation type: count
  • add field taxonomy term

Your view should look similar to the following

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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