Home Forums Add-ons Repeater Field Order by date, repeater field Reply To: Order by date, repeater field

  • Hi @eiriksk

    This will not be possible with any WP_Query args, so you will need to do this custom ordering with custom PHP logic.

    Firstly, load the posts via the get_posts function, and then loop over them.
    For each post, load in the playing dates data and use this data to construct an array where one of the columns is the playing time.

    Then you can use the code in the above tutorial to sort this custom array based on the playing time.

    Good luck