The code seemingly works. But the feeds are not in the right order. Feed items are supposed to be listed by date. Instead, feed items are grouped by feed and then ordered by date.
The feed items are arranged correctly when I manually insert the values of the feeds. So if the code provided by StackOverflow worked as intended, it would be working. So I don’t think this is a problem with SimplePie.
When I insert gibberish into the code…
$urls = "dfsf" . $row . "fsdf";
… the feed items are ordered correctly, but entire feeds are missing.
I can’t make any sense of this. What could be the problem? Any suggestions?