NextGen albums with preview image title and link to preview item (1 post)

  1. dollenmetmedia
    Posted 3 years ago #

    Hi all,

    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>
     	<?php endforeach; ?>
    	<span class="control prev"></span>
    	<span class="control next"></span>
    <?php endif; ?>

    Hopefully someone can help me with this, might as well be a hack or something, just want it to work ;)

    Greets, Chris

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by dollenmetmedia
  • This topic is not resolved
  • WordPress version: 3.5.1