Thanks for the replies, I really appreciate it.
I don't really understand the syntax of
foreach ($customPosts as $date=>$posts){
Like I said - I'm a complete novice with PHP.
I'm a lot more comfortable with the likes of C#, where a foreach loop would be written something like this (for example):
foreach (String str in stringArray){
I'm afraid I just don't understand "$customPosts as $date=>$posts" at all. Could someone pseudo-code it for me? Or explain it in terms of C#/Java/JS type syntax?
Thanks again. Sorry for being a bit dense...