Hi, I just need a way to fetch a specifically gallery by name and be able to iterate over the pictures/thumbnails/link*, and do whatever I can with it.
* that would be my "image" object :)
Hi, I just need a way to fetch a specifically gallery by name and be able to iterate over the pictures/thumbnails/link*, and do whatever I can with it.
* that would be my "image" object :)
ok, done with simple wpdb
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 )
This topic has been closed to new replies.