Title: Filter by Years
Last modified: October 2, 2019

---

# Filter by Years

 *  [ElectroN](https://wordpress.org/support/users/ihou/)
 * (@ihou)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/year-filter/)
 * Hi,
 * Great plugin first!
 * Just wanted to ask if you have thought of adding a year archive filter. So it
   can filter posts by years.
 * If not, do you think it would be easy to implement?
 * Thanks,
    Mariyan
    -  This topic was modified 6 years, 9 months ago by [ElectroN](https://wordpress.org/support/users/ihou/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [vlooon](https://wordpress.org/support/users/vlooon/)
 * (@vlooon)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/year-filter/#post-12003925)
 * This is exactly what we need too! I think we have to use custom taxonomy now,
   but we don’t know how to create a custom taxonomy. Hope we can get some help 
   with this here!
 *  [marvinusmartianus](https://wordpress.org/support/users/marvinusmartianus/)
 * (@marvinusmartianus)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/year-filter/#post-12032225)
 * Not sure what you mean — do ou want to select by date/daterange of the post_date?
   That’s listed under the “types” (select, checkbox, radio, date, daterange) [http://docs.designsandcode.com/search-filter/#examples](http://docs.designsandcode.com/search-filter/#examples)
 * But if you really want a custom taxonomy for year, then google that it’s easy(
   or use just that bit of my following link). So if it’s year-of-posting you need
   into that custom taxonomy, I’d look at [https://geekgirllife.com/alphabetical-index-of-posts-in-wordpress/](https://geekgirllife.com/alphabetical-index-of-posts-in-wordpress/)—
   it reads the title, takes its first letter and uses that to index: That’s practically
   the same as what you want (read a date-time, save the year). This way you don’t
   have to manually (or SQL-wise) fill all these in, it reads them in whenever you
   create one (or change it!); and you can force it to read in all existing. [I’ve
   used this once, for alphabetizing.]
 * In your specific case, you could consider two (or more) custom taxonomies: One
   for year, one for decade — so people can bunch per decade (if you have few entries)
   or whatever unit is sensible.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Filter by Years’ is closed to new replies.

 * ![](https://ps.w.org/search-filter/assets/icon-256x256.png?rev=3096093)
 * [Search & Filter](https://wordpress.org/plugins/search-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/search-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-filter/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [marvinusmartianus](https://wordpress.org/support/users/marvinusmartianus/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/year-filter/#post-12032225)
 * Status: not a support question