Link to home
Start Free TrialLog in
Avatar of Amanda Watson
Amanda WatsonFlag for Australia

asked on

How can you add album description for NexGEN gallery in wordpress

Hi There,
I have added some albums with shortcode to a page like
[album id=1 template=compact] and
[album id=1 template=extend]

but neither show the album description.

Does anyone know how I can enabled this setting in NextGEN.

Thank you
Avatar of Travis Hydzik
Travis Hydzik
Flag of Australia image

add this line at the top of the gallery.php

<?php $album = nggdb::find_album( get_query_var('album') ); ?>

Open in new window


and place this somewhere
<h2><?php echo $album->name?></h2>

Open in new window



refer to here
wordpress.org/support/topic/plugin-nextgen-gallery-album-title-display-on-gallery-page
Avatar of Amanda Watson

ASKER

Thanks very much for the reply....where is gallery.php

I can find nggallery.php in wp-content/plugins/nextgen-gallery...???
oh in this one wp-contents/plugins/nextgen-gallery/view/gallery.php?
ok I added the code suggested and I cannot see any change at all..?
This is the gallery.php file I used which I added the code you suggested
gallery.txt
Sorry I am actually trying to display the DESCRIPTION of the album, not just the album NAME but also the DESCRIPTION....?
I think name? is supposed to be description? maybe???

And I read here that the extended version should show the description...but it doesn't???
http://creativeslice.com/tutorials/nextgen-gallery/
and it shows how many images are in the album but NOT what I wrote in the description....do I need to add another plugin or something...this just isn't working correctly??
snowball, let me test on my development wordpress blog and I will get back to you
thank you very much
okay, all you need to do is place the following somewhere, ie above the "<!-- Thumbnails -->";

<h2><?php echo $gallery->title ?></h2>

Open in new window

Sorry in the wp-contents/plugins/nextgen-gallery/view/gallery.php file?
yep, same as the file you attached.
ok so I did that and it shows the TITLE of the album, but not the DESCRIPTION???
and it also shows it on the subpage of the album, not the album description?

I would like the description on the image to show similar to this
http://adamnoosa.redbubble.com/sets/67974/works

When you create an album and enter it into a page, I would like the album description to show underneath the thumbnail??
in album-extend.php there is a tag <?php echo $gallery->galdesc ?>  which is where the description of the album should show.....

Line 28 in album-extent.php

But it doesn't show???


Then it shows <?php if ($gallery->counter > 0) : ?>

That works and I can see the number of images in the album, but no description??

Any ideas?
I would even be satisfied with a description being shown under the thumbs when you are in grid view....they only show in the slideshow when you click on the main image

I just want it to look like this http://adamnoosa.redbubble.com/sets/67974/works?
snowball, can you please clarify what you are after?

is it, when you are viewing the gallery, you want the description of the album viewable under the thumbnails?
I created a page that shows all the albums like this
:

[album id=1 template=extend]
[album id=2 template=extend]
[album id=3 template=extend]

And when you view the page you can see an album thumb and then it shows how many photos are in each album....but it does not show the ALBUM description.

You can then click on the album thumb and then it shows all the images in the album, again, with no desciption, but then if you click on the image it shows the image in a lightbox with the description.

So what I am after is the ALBUM description to show with the extend version.....and I have read forums that say the extend version will show the album description, but mine certainly isnt?

So do you know how to fix this?
ASKER CERTIFIED SOLUTION
Avatar of Travis Hydzik
Travis Hydzik
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, I will try it.
Currently the client is now satisfied so I don't need to do it anymore, but I think it would be good to get it working so I will try the code and let you know how I go....
Thanks this worked ;-)