How to group posts by date

How to retrieve posts from my database and order them by date posted?

Like this:

11/11/2021

  • Post 6
  • Post 5

10/11/2021

  • Post 4
  • Post 3

09/11/2021

  • Post 2
  • Post 1

Is there any way to achieve this?

If you have a separate collection called ‘dates’, then a relationship to each post. So each post belongs to a date. Then you could make a custom list of dates, and a post custom list inside that. List within a list. Here is an example of a list within a list for another use case:

2 Likes

Thank you so much. I will try to implement it.

It worked. thanks a lot.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.