Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » Album exist but Nextgen said it is empty

  • I have the following code to this display the album title, but it doesn’t work.

    <?php $album = nggdb::find_album( get_query_var('album') ); ?>
    <?php if(isset($album)) echo '$album load..... ok !<br />'; ?>
    <?php if($album != '') {echo '$album is not empty';} else {echo '$album is empty...';} ?>
    <?php echo $album->name ?>

    The test result shows

    $album load….. ok !
    $album is empty…

    There is an album created and the album appears when using the shortcode [nggalbum id=3 template=compact]

    Please help.
    Thank you.

  • The topic ‘Album exist but Nextgen said it is empty’ is closed to new replies.