How to Group Custom Post Types by Publication Year in WordPress

Dear community

I am trying to create a list of CPT (Custom Post Types) called ‘References,’ grouped by year. The year I intend to use is based on the native WordPress publication date. The goal is to achieve the following structure:

2024

  • Reference Post Title
  • Reference Post Title
  • Reference Post Title

2023

  • Reference Post Title
  • Reference Post Title
  • Reference Post Title

2022

  • Reference Post Title
  • Reference Post Title
  • Reference Post Title

If possible, I would like to use the Bricks to create the structure for each post. Do you know how I can accomplish this?

Looking forward to your valuable help. :slight_smile:
Best regards,