• I have created a custom template to show a preview gallery when used and I’m trying to add a link to the full gallery page under the preview thumbs. However, I can’t seem to get all of the $gallery variables to work in the below code snippet within the gallery custom template:

    <h3><a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a></h3>
    <?php if ($gallery->counter > 0) : ?>
    <p><strong><?php echo $gallery->counter ?></strong> <?php _e('Photos', 'nggallery') ?></p>
    <?php endif; ?>

    The $gallery->title variable works, but the $gallery->pagelink and $gallery->counter return nothing.

    Is there a way to get all of the $gallery variables to work in a gallery page like they do in the album templates?

  • The topic ‘[Plugin: NextGen Gallery] $gallery Variable in Custom Gallery Template’ is closed to new replies.