Home › Forums › Add-ons › Repeater Field › Press release using repeater field and date picker › Reply To: Press release using repeater field and date picker
My advice would be to not use a repeater field for this. A better solution would be to create a custom post type for your press release section https://codex.wordpress.org/Function_Reference/register_post_type. This would also allow you to create a custom taxonomy in order to categorize your posts if you wanted https://codex.wordpress.org/Function_Reference/register_taxonomy. While adding custom rewrite rules and other code you could also create date archives for your custom post type, with a little work or could even be done using a plugin https://wordpress.org/plugins/custom-post-type-date-archives/
If you really want to use a repeater for this I would suggest looking at this turorial https://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/. Creating date archives for a repeater field is going to be complicated. I would suggest starting with the Dynamic $_GET parameters section of this page https://www.advancedcustomfields.com/resources/query-posts-custom-fields/
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!
CPT registration is coming to ACF! We demoed the new feature during the most recent session of ACF Chat Fridays. Check out the summary for the details. https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 7, 2023
© 2023 Advanced Custom Fields.