• NextGEN Gallery 1.3.6 could display galleries within a post by ‘name’ as well as ‘ID’. This feature has been removed from 1.4.0 +

    Is this an oversight or a permanent feature?

Viewing 4 replies - 1 through 4 (of 4 total)
  • More or less it’s intented… I know that it’s possible in the past, but to reduce the amount of queries, I’ve removed double checks for ID & gallery name

    Thread Starter uiqo

    (@uiqo)

    Hi Alex. Thanks for your reply.

    Please could you reconsider this or provide some custom code so I can implement it again in 1.4.3. I have over 700 galleries with more than 9000 pictures. I would take too long to crawl through them all, match up the ID names to the gallery names and then find and edit all 700 posts.

    Either way, Thank you for your awesome work.

    Just delete line 211 in file lib/shotcodes.php and add this :

    $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE gid = '$id' ");
    if(!$galleryID) $galleryID = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE name = '$id' ");
    $out = nggShowGallery( $galleryID, $template, $images );
    Thread Starter uiqo

    (@uiqo)

    Hi Alex.

    Thanks again for your reply. This resulted in the following error:

    Fatal error: Call to a member function get_var() on a non-object in /******PATH REMOVED********/nextgen-gallery/lib/shortcodes.php on line 211

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: NextGEN Gallery] Galleries can no longer be referenced by name and ID’ is closed to new replies.