Hope someone more experienced than me can help me here. I’ve created a couple of custom post types called ‘ff_events’ and ‘ff_exhibitions’ in a site I’m developing. Via a date picker using the plugin Advanced Custom Fields, I’ve added ‘start’ and ‘end’ dates to these posts so I can use them to display the posts in chronological order.
Basically, I need to list monthly archives for both these custom post types based on their start dates i.e. I can’t use the plugin below as it shows custom post type archives based on the post’s publish date rather than using the start date custom field:
So, that’s where I’m at. I need to list monthly archives for my custom post types based on their custom field-set start dates and am lost as to how to do it!
Does anyone know how I can go about doing this?
PS, here’s a screenshot of what I’m trying to do (it’s very similar to what wp_get_archives() does in other words, but I need it to only show results for my two custom post types and the dates should refer to the custom field ‘start date’ rather than the post’s publish date).