Hello people,
I was very happy to hear about the 1.1 release. Although it means that I have to change my theme (integrated in wordpress) slightly. While going through the new release I can't find how to reverse the sorting of (sub)albums.
I would like the newest albums on top.
I searched through the forum, but the relevant topics are related to previous releases, and I'm not PHP pro enough to feel confident changing to much code if i'm not sure i'm doing the right thing. So the question:
How do I reverse the sorting of (sub)albums in Zenphoto 1.1(!) (or where in the forum can I read the solution)
Cheers
Comments
`$order = "";
if($sortkey='date') {
$order = " DESC";
}`
Edit the code on line 634 (now line 638) to read:
`" ORDER BY " . $sortkey . $order);`
instead of
`" ORDER BY " . $sortkey);`
This forces the results into a descending order when being pulled from the database if the sortkey is 'date'. Hopefully this helps.