WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
Problem with album query (1 post)

  1. ioryadragon
    Member
    Posted 2 years ago #

    So i was working on query to list all the galleries available in an album, but sort them after the image id, to see the latest galleries updated so i tried this:

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

    The problem is that it doesnt work completely. Some galleries adds them in a bad order, even if the id clearly is there, or doesnt even shows them at all.

    Any ideas guys?

    Thanks

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.