Home › Forums › General Issues › Archives of custom posts based on date picker › Reply To: Archives of custom posts based on date picker
I know this is an old question so I’m adding an answer for those that are looking for something similar. There are a couple of ways to accomplish this. The first is by following the example here https://www.advancedcustomfields.com/resources/creating-wp-archive-custom-field-filter/. The second is to use the actual “post date” of the post and add rewrite rules to create actual date archives for the custom post type. You can see an example of this here https://github.com/Hube2/cpt-widgets/blob/master/CPT-archives-widget.php.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.