WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. bevegan
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/nextgen-gallery/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic