• I am using the following code to display the number of images/galleries/albums and it is working perfectly.

    global $wpdb;
    $images    = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures") );
    $galleries = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggallery") );
    $albums    = intval( $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggalbum") );
    
    echo 'At a Glance<br />';
    echo $images;
    echo ' images<br />';
    echo $galleries;
    echo ' galleries<br />';
    echo $albums;
    echo ' albums.';

    I would however like to expand on this and exclude certain galleries/albums. The number of images will reduce in accordance to the gallery/album I have excluded. For example: I have a total of 100 images, 10 galleries and 5 albums. I would like to reduce this down to 5 galleries and 3 albums and it will have a total of 50 images.

    Can this be achieved?

The topic ‘[Plugin: NextGEN Gallery] Exclude galleries/albums from count’ is closed to new replies.