I’m currently using the NextGen plugin in a website, and found great use of the multiple custom gallery templates. For this particular website I’ve made use of an album template, that gives me the preview image through the previewurl. But I would like to also get the title of the particular previewed item, and a link to the previewed item. Is this possible?
My code for the album (album-slideshow.php) is below. The site isn’t online yet, so I can’t show you guys the real thing, sorry.
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?><?php if (!empty ($galleries)) : ?> <div class="flexslider"> <!-- Thumbnails --> <ul class="slides"> <?php foreach ( $galleries as $gallery ) : ?> <li class="slide"> <figure class="figure"> <img src="<?php echo $gallery->previewurl ?>" alt="<?php echo $gallery->title ?>"> <figcaption class="figcaption"> <a href="#" class="title" title="titel">title_should_go_here</a> uit <a href="<?php echo $gallery->pagelink ?>"><?php echo $gallery->title ?></a> </figcaption> </figure> </li> <?php endforeach; ?> </ul> <span class="control prev"></span> <span class="control next"></span> </div> <?php endif; ?>
Hopefully someone can help me with this, might as well be a hack or something, just want it to work 😉
- The topic ‘NextGen albums with preview image title and link to preview item’ is closed to new replies.