nextgen gallery order issue
Posted
by
mro
on Stack Overflow
See other posts from Stack Overflow
or by mro
Published on 2011-02-03T15:23:07Z
Indexed on
2011/02/03
15:25 UTC
Read the original article
Hit count: 197
Hi, wonder if anyone can help.
I think what I'm after won't be solved by any exsiting code in nextgen plugin (in wordpress) due to the custom way I'm using it hence I come to stackoverflow for some opnions.
Bascially - I am only really using the admin of nextgen to work with the gallerys etc. The actual meat of the functionality I'm querying the nextgen DB's direct from my code, I would have loved to use the inbuilt gallerys in nextgen, but my spec specifics were so custom I couldn't.
My issue is, I need to pull the images from the DB's in the order it is in the admin (ie if a user pulls the sort order around in the drag and drop area).
I have noticed however this doesn't affect the image id order in the DB, and wouldn't expect it to - that would be some complex shifting around just to reorder everytime surely. So obviously when I query the DB the order it's looking at is when it was created, by image id, with my filtering on top.
I'm wondering though if there is a way I can query that sort order that's determined in the admin somehow, then at least I could sort the array somehow in the code ? does next gen store it's user custom sort order somewhere ?
Hope this makes sense :) any thoughts appreciated.
Thanks
© Stack Overflow or respective owner