Thread Starter
ratbo
(@ratbo)
Thanks. I managed to change it myself.
i added if(!array_key_exists('latest', $atts)) $atts['latest'] = ""; to get a latest attribute and between the foreach a if ($atts['latest'] == "1") {break;}
now, when i use latest=1 as attribute and the sort order i can output the first, or the last file in the directory (our files has a date as filename)
works great and thank you for the great plugin