Viewing 11 replies - 1 through 11 (of 11 total)
  • ngg-db.php line 244

    $album->sortorder = serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ORDER BY gid DESC") );

    Thread Starter Ricky Irvine

    (@dressedinvalue)

    AWESOME THANKS!

    Sorry to dig up an old thread, but I don’t have a ngg-db.php to edit in the newest version. I’ve tried determining the gallery order in the admin tool, but it doesn’t change anything (ascending or descending). I’d really like to have my newest gallery on the top if possible. Can anyone lend a hand?

    I’m using [album id=x] btw, and I’m really happy with the layout, I just want the order reversed.

    https://www.motorfanatic.net/pics/

    Thanks!

    Hi,
    i dont know if that fits your needs and this only applies to compact albums: https://nextgen.boelinger.com/albumtags/

    best regards
    bee

    Thanks for the link, and I wish it did fit my needs, but I really don’t want to use compact albums and all I would like is the most recent galleries on top. I feel silly because it probably isn’t that hard?

    Can anyone else lend a hand?

    Thanks!

    Hi,
    the ngg-db.php resides now in the “lib” directory an the line to change should be 244.

    best regards
    bee

    Hi.
    Anyone know how to do it in 1.3.3?

    In version 1.3.6 the answer is the same,

    ngg-db.php still resides now in the “lib” directory an the line to change should be 293.

    Hello,

    I did the same but I’ve sorted it by title ASC.

    $album->sortorder = serialize( $wpdb->get_col("SELECT gid FROM $wpdb->nggallery ORDER BY name ASC") );

    It works very well also.

    hello,

    am looking to modify the sorting order of a number of galletries inside a specific category: example site with xyz categories and inside each several galleries so x1,x2,x3 etc
    how can I move x2 to x1 position?
    hope this is clear
    thx
    reg
    ted

    thx fore the rapid feedback! will look into this but looks like something I will have to ask my webmaster to take care of..
    reg
    ted

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘NextGEN Gallery: Album sort order’ is closed to new replies.