I've been trying to work out something in my Wordpress Theme (Football Club, from Themeboy).
For example, on this page: Example Link
You see a list of a whole bunch of matches, in blocks of 4 per play date.
03/09/2017 K. Lierse SK D 10:00 Heikant Berlaar
03/09/2017 K. FC Pulle B 10:00 K. RAC. Emblem B
03/09/2017 K. Bevel FC A 10:00 K. Ramsel FC
03/09/2017 SK Rita Berlaar A 10:00 Kessel United
10/09/2017 K. FC Pulle B 10:00 SK Rita Berlaar A
10/09/2017 Kessel United 11:00 K. Bevel FC A
10/09/2017 K. RAC. Emblem B 11:15 Heikant Berlaar
10/09/2017 K. Ramsel FC 11:30 K. Lierse SK D K
17/09/2017 SK Rita Berlaar A 10:00 K. RAC. Emblem B
17/09/2017 Heikant Berlaar 10:00 K. Ramsel FC
17/09/2017 K. Bevel FC A 10:00 K. FC Pulle B
17/09/2017 K. Lierse SK D 11:45 Kessel United
What I would like to do is apply an empty row, every time the play date changes, so it looks like this.
03/09/2017 K. Lierse SK D 10:00 Heikant Berlaar
03/09/2017 K. FC Pulle B 10:00 K. RAC. Emblem B
03/09/2017 K. Bevel FC A 10:00 K. Ramsel FC
03/09/2017 SK Rita Berlaar A 10:00 Kessel United
(Empty row)
10/09/2017 K. FC Pulle B 10:00 SK Rita Berlaar A
10/09/2017 Kessel United 11:00 K. Bevel FC A
10/09/2017 K. RAC. Emblem B 11:15 Heikant Berlaar
10/09/2017 K. Ramsel FC 11:30 K. Lierse SK D K
(Empty row)
17/09/2017 SK Rita Berlaar A 10:00 K. RAC. Emblem B
17/09/2017 Heikant Berlaar 10:00 K. Ramsel FC
17/09/2017 K. Bevel FC A 10:00 K. FC Pulle B
17/09/2017 K. Lierse SK D 11:45 Kessel United
I'm not all too familiar with PHP to figure this out entirely on my own, but I think that with some help I will be able to figure it out.
Here's a pastebin with the entire source code of the page. The list gets constructed with the event-list.php file.
As far as I'm aware, I'll probably have to store the date in a variable, then compare it with the date of the previous echoed row. And if not the same, add an empty row somehow.