Archives for custom post type based on a “date” meta value
-
01-11-2019 - |
Question
I've got an "Event" custom post type. Each post has a meta field for the actual event date, which cannot be the posts's publish date, as most all the event dates will be in the future.
With that, I'm trying to create an archive (year and month) for past and future events based on the meta field. Just can't wrap my head around how I would create a query for this and have it display like url.com/post-type/2011/01
The meta field date value is set as YYYY-MM-DD.
Any help with this one is greatly appreciated! Thanks.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange