NextGEN Gallery
Album exist but Nextgen said it is empty (1 post)

  1. bevegan
    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic