This should do the trick :
<?php $album = nggdb::find_album( get_query_var('album') ); ?>
add this line at the top of the gallery.php
Humm Well doesn’t work for me… perhaps i done something wrong :/
I put the : <?php $album = nggdb::find_album( get_query_var('album') ); ?>
at the top of gallery.php before the comment block.
and i add the : <?php echo $album->name?> in the thumbnails part of the code.
But… nothing shows up.
I have all of this in localhost :/
But i don’t know why when i added the link, it think the $album is empty…
thank you. It worked for me too. Great Plugin
It doesn’t work for me.
Here’s the link : http://clients.karlotta.com/geraldine-stephane-demo/the-bride/
and the code :
<?php $album = nggdb::find_album( get_query_var('album') ); ?>
<?php
/**
Template Page for the gallery overview
Follow variables are useable :
$gallery : Contain all about the gallery
$images : Contain all images, path, title
$pagination : Contain the pagination content
You can check the content when you insert the tag <?php var_dump($variable) ?>
If you would like to show the timestamp of the image ,you can use <?php echo $exif['created_timestamp'] ?>
**/
?>
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($gallery)) : ?>
<div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
<h2><?php echo $album->name?></h2>
<!-- Thumbnails -->
<?php foreach ( $images as $image ) : ?>
... etc
It would be so nice to get some help!
Thank you 🙂