Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter anothertrad

    (@anothertrad)

    ok, done with simple wpdb

    Thread Starter anothertrad

    (@anothertrad)

    for the record:

    $ngggalleryname = 'test';
    $previewpicdata = $wpdb->get_row(" SELECT * FROM $wpdb->nggallery  where name='$ngggalleryname'");
    $images = $wpdb->get_results(" SELECT * FROM $wpdb->nggpictures  where galleryid=$previewpicdata->gid");

    foreach…`

    Or you use this way : nggdb::get_gallery( $galleryID )

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: NextGEN Gallery] Fetch data programatically, from the template files’ is closed to new replies.