Skip to main content
2 of 2
added 20 characters in body

How to display only the years that have content in view filter?

What I have done

  1. I have created a view.
  2. I have added a content type to display .
  3. I have added a filter to filter by node date content and have opted to display the post date as year in the filter.

What I want actually

I wanted to display only the years that have content. I am using Drupal 7.

Which are the ways to do this?