reversing order of printAllDates

Heya all,
Any tips on reversing the order of the printed out dates using the printAllDates template function. Currently it is ordered oldest to newest, but I would like it ordered with the most recent on top. Sorry - I am not a coder - any tips appreciated!

Comments

  • In the function `getAllDates()` in template-functions.php there is a line that reads `ksort($datecount);` Change "ksort" to "krsort". Be aware that you will have to make this change each time you update to a new version of zenphoto.
  • gjr Member
    perfect - thanks sbillard!!
Sign In or Register to comment.