Title: [Plugin: NextGEN Gallery] Album variable ?!
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Album variable ?!

 *  [Kitefr](https://wordpress.org/support/users/kitefr/)
 * (@kitefr)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/)
 * Hi !
 * Just a question about this wonderful Plugin !
 * I use the `<?php echo $gallery->title ?>` in gallery.php for add the title of
   the gallery.
    I need to add the title of the album too so i tried to use this
   code : `<?php echo $album->title ?>` but it didn’t work at all and i wanted to
   know if they are a way to display the album title with a variable in NextGen 
   Gallery ?!
 * Thanks in advance !

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Alex Rabe](https://wordpress.org/support/users/alexrabe/)
 * (@alexrabe)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125637)
 * [http://wordpress.org/support/topic/284710](http://wordpress.org/support/topic/284710)
 *  Thread Starter [Kitefr](https://wordpress.org/support/users/kitefr/)
 * (@kitefr)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125668)
 * Ohhh thanks a lot !
 *  Thread Starter [Kitefr](https://wordpress.org/support/users/kitefr/)
 * (@kitefr)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125720)
 * I view this topic but not worked for me :/
 *  Thread Starter [Kitefr](https://wordpress.org/support/users/kitefr/)
 * (@kitefr)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125721)
 * So… the trick you tell is the other topic don’t work for me.
    I made some code
   for testing the variable and 1) the $album variable is defined 2) the $album 
   variable is empty !
 * I don’t know why the $album viariable is empty :/
 * I add for the test :
 *     ```
       <?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...';} ?>
       ```
   
 * A solution ?!
 *  Thread Starter [Kitefr](https://wordpress.org/support/users/kitefr/)
 * (@kitefr)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125773)
 * up
 *  [psoderlund](https://wordpress.org/support/users/psoderlund/)
 * (@psoderlund)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125780)
 * Sorry.. I replied to already existing.. I made my own post, desregard this post.
   
   Cheers Peter
 * Hi, Just moved to new hosting site running Linux and I have a strange problem.
   I moved my entire site from home hosting to this one and after setting everything
   up all seems to be ok but some of my galleries are missing ?? and some are not.
   Initial thoughts are that this is a rights issues but how come the other albums
   work fine ([http://www.soderlund.dk/wp02/?page_id=3](http://www.soderlund.dk/wp02/?page_id=3)).
   At the moment I cannot even add new gallery, I get error that the server Safe-
   Mode is on and tells me to try to add the folder manually which I have also tried.
   
   I try to give all of the involved folder the 777 access but it doesnt seem to
   help ?? Any ideas were I’m going wrong and how come some of the folders seem 
   to work ?
 * Hoping for some tips on this ??
    Best regards Peter

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: NextGEN Gallery] Album variable ?!’ is closed to new replies.

## Tags

 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)
 * [NGG](https://wordpress.org/support/topic-tag/ngg/)

 * 6 replies
 * 3 participants
 * Last reply from: [psoderlund](https://wordpress.org/support/users/psoderlund/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-album-variable/#post-1125780)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
