[Plugin: NextGEN Gallery] Add gallery title to in-page view? (4 posts)

  1. FlowFree
    Posted 6 years ago #


    I have just started using nextgen on my wordpress site - see http://www.flowfree.co.uk/photos-2/

    I have opted for galleries to open within the page, rather than in a new page but I would like to have the title of the gallery above whatever view the user is viewing.

    I have hacked gallery.php (see http://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3) and imagebrowser.php (see http://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3&pid=50), so they now show the title.

    HOWEVER I have the following issues:

    • I cannot work out what file to edit to get the gallery title displayed in slideshow view (see http://www.flowfree.co.uk/photos-2/photos-of-ff-courses/?album=2&gallery=3&show=slide)
    • Although I am able to get the title to view, I am unable to access the gallery page link (or at least the URL to take me back to default view of that gallery) so the title just links to the current page (and in the html the href is empty)
    • Now if I use the [random ] shortcode, the title of the album that the photos were selected from comes up above the photos
    • I'd like imagebrowser to link back to the thumbnail view and link to the slideshow view - how can I do this?

    I added the following code to imagebrowser:

    <?php $gallery = nggdb::find_gallery( get_query_var('gallery') ); ?>
    <h3><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></h3>

    And this to gallery.php and gallery-carousel.php :
    <h3><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></h3>

    Please can anyone advise how to get my desired outcomes? I imagine that adding the above code to those files is not the best way to do it!!

    All help very gratefully received!




  2. FlowFree
    Posted 6 years ago #

    Any help? Anyone?

  3. Jeff Cohan
    Posted 6 years ago #


    Thank you for your post. It solved my problem, which I posted in another thread.

    Thanks to you, I was able to display titles and descriptions on gallery pages. Here's the result:


    Wish I could help you solve your remaining problems, but I don't think I can.

    BTW, here's the link to the WP forum post of mine, where I asked how to display titles and descriptions on gallery pages:

  4. goddesskarla
    Posted 6 years ago #

    I hope that everyone found the answer they were looking for. The above code is exactly what i was looking for.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.