Forums

[resolved] [Plugin: NextGEN Gallery] [album id=all] - need to sort the galleries in descending order (5 posts)

  1. ryanbednar
    Member
    Posted 3 years ago #

    Thanks in advance for any help or ideas.

    I am using the following shortcode to auto-display a listing of all the galleries in my database:
    [album id=all template=compact]
    This works great except for one thing... I need the galleries to appear in descending order instead of the default ascending order. In other words, I want the newest galleries shown at the top of the list.

    Obviously, I could manually create a new album and then manually drag and drop new galleries in to the proper order in the "Manage Albums" window, but this would require regular upkeep, which currently I can avoid if I use the id=all attribute in the album shortcode.

    I also tried searching the plugin files for the proper instance to hack, but I wasn't able to pinpoint an instance of "ASC" or "DESC" related to the album view specifically, but it's possible I missed it.

    Otherwise, the plugin is working perfectly for my needs... seems like someone else would have encountered the same problem, but I didn't find any when I searched the forums. Thanks again for any help or ideas.

    ~Ryan

  2. ryanbednar
    Member
    Posted 3 years ago #

    Update: Still no luck, but I'm learning quite a bit more about how everything else works... :)

    I'm continuing to search through the core functions to see if I can find the specific function that outputs the galleries (and their order) within an album... specifically an album that is created using:

    [album id=all]

    Surely I can't be the first person to try to figure this out... but I'll be sure to post the solution when I do. Thanks.

  3. Ricky
    Member
    Posted 3 years ago #

    You aren't the only one. I need to do the exact same thing you are trying to do. Please post here if you figure it out. I'll do the same.

  4. ryanbednar
    Member
    Posted 3 years ago #

    Resolved: see link below

  5. Ricky
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.