• I have created some albums and into these albums I have put some galleries. Now when I show a gallery’s overview page, there is no title of the current gallery shown on the top of the overview page, I only see “show as slideshow” and then the thumbnails.

    I want to insert the current title on every gallery page automatically. I tried to modify nexgen-gallery/view/gallery.php as the template for the gallery page.

    I think the title of the current gallery should be in the array $gallery, but when I use <?php var_dump($gallery) ?>, it isn’t. I tried to use it like that:

    <?php echo $gallery->title ?>

    In this topic (https://www.ads-software.com/support/topic/170908), I think there was a solution for the problem but with version 1.0.2 of NexgGEN Gallery I think this does not work any more.

    Could you tell me how I can put the gallery title in the gallery.php or take this issue to add as an option in the backend/admin page for future releases? I think this was requested some more times. Thanks.

Viewing 2 replies - 16 through 17 (of 17 total)
  • Is it possible to call

    <?php echo $images[0]->title; ?>

    within the loop of index.php?

    I made a nice & simple Breadcrumb trail in gallery.php:

    <div class="entrytitle">
    	<h2><a style="h2" href="www.website.com/gallery" alt="Gallery">Gallery</a>&nbsp;>&nbsp;<span class="gallerytitle"><?php echo $gallery->title ?></span	>
    	</h2>
    </div>

    The problem I was having was the category permalink would also show from the file index.php.

    So I duplicated the original index.php
    as index-default.php, and replaced the original
    index.php code with:

    <?php
    $post = $wp_query->post;
    if ( in_category('7') ) {
    include(TEMPLATEPATH . '/index-gallery.php'); }
    else {
    include(TEMPLATEPATH . '/index-default.php'); }
    ?>

    So index-gallery.php is a duplicate of the original
    index.php with the title & permalink code removed.

    I guess i could have just put an IF statement
    in the original index.php, but I didn’t know
    how to carry the gallery title variable from
    gallery.php. Hope this helps someone.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘[Plugin: NextGEN Gallery]: Show gallery titles on gallery page’ is closed to new replies.