WordPress.org

Support

Support » Plugins and Hacks » [Plugin: NGG Sidebar Widget] More order options

[Plugin: NGG Sidebar Widget] More order options

  • Topher
    Participant

    @topher1kenobe

    I need to show the galleries with the most recent additions. I’m comfortable coding this myself, are you interested in having the code?

    I intend to do something like

    SELECT DISTINCTgalleryidFROMngg_picturesORDER BYimagedateDESC LIMIT 4

    to get the ids of the galleries I want to show. I’m still pondering how to make this not hurt the server too bad. 🙂

    http://wordpress.org/extend/plugins/ngg-sidebar-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Topher
    Participant

    @topher1kenobe

    WordPress ate my query:

    SELECT DISTINCT galleryid FROM ngg_pictures ORDER BY imagedate DESC LIMIT 4

    How about only displaying 1 image but allowing you to scroll others when it’s opened?

    Topher
    Participant

    @topher1kenobe

    This is done. I’ve tweaked NGG Sidebar Widget so that the first gallery icon shown is the one with the most recent image in it, and descending accordingly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: NGG Sidebar Widget] More order options’ is closed to new replies.