2012-07-07, 06:16:58
Thanks for the advice yojoe. I tried changing foreach to for, which resulted in a fatal error. I tried flipping the pages array but nothing changed. I think my problem lies in the post cache file (posts.xml). When I create a new post, it is added to the cache file as a new item at the end, then the function 'nm_get_posts' appears to call each post in the order they appear in the cache file:
$data = @getXML(NMPOSTCACHE);
foreach ($data->item as $item) {
I have no idea how I'd change how the items are listed in this file, as I'm pretty new to all this. Any more advice would be greatly appreciated.
$data = @getXML(NMPOSTCACHE);
foreach ($data->item as $item) {
I have no idea how I'd change how the items are listed in this file, as I'm pretty new to all this. Any more advice would be greatly appreciated.