Hi @yarnlore ,
Thank you for reaching out.
I’m afraid there isn’t a separate “year” metadata for events. You can have a look at our WordPress Post Meta Data Cheatsheet to know the different metadata associated with events (tribe_events) posts.
Ah, that explains it then. You’ve no plans to add this post type? Otherwise I’ll have to write a JavaScript work around, and that sounds messy.
Plugin Support
Darian
(@d0153)
Hi @yarnlore
Thanks for your message! To clarify what Tristan mentioned, while there isn’t a dedicated “year” metadata, you can use the _EventStartDate metakey, which includes the month, day, and year. You can start with the snippet provided in this article: Creating Custom Filters for Filter Bar, and modify it to filter events by year.
Since this involves custom coding, it’s outside the scope of our standard support. I recommend reaching out to a developer familiar with WordPress and The Events Calendar for assistance. You could also try using ChatGPT or any AI chatbots that you prefer to get some guidance on how to adjust the snippet for your specific needs.
No worries, I think that article is what I needed. Thanks!
Plugin Support
Darian
(@d0153)
You’re welcome, @yarnlore !
I’m glad I could assist you with your question.
If you have a moment, we’d truly appreciate a positive review from you—it helps us continue improving The Events Calendar for everyone:
https://wordpress.org/support/plugin/the-events-calendar/reviews/
I’ll go ahead and close this thread for now. If you have any other questions or need further assistance, please feel free to reach out and open a Support Ticket through our Help Desk. We’re always here to help, so don’t hesitate to get in touch!