I encountered the problem of displaying custom records in pages by date. I have approximately 400 posts from 2017 to 2019. The date is in a custom field and I take it using the operation $year = date("Y", strtotime(get_field('letter_sent'))); . All posts are displayed on this request
It is necessary to create a page for 2019 and display entries in which are in the field 2019, for 2018 and so on. Tell me how to implement this since I can’t find a clear answer.
(sorry for google translate)