Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hi,

    Whereabouts do I add the code below ?:

    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”) );

    To allow me to use :

    “This site currently has <?php echo $images; ?> number of pics.”

    thanks

    Sam

Viewing 1 replies (of 1 total)