thetvstop
Member
Posted 2 years ago #
Hi, firstly awesome plugin!
http://www.thetvstop.com/cbs/ghost-whisperer/ghost-whisperer-episode-411-life-on-the-line-promo/
On my page here, i have albums set up, and both galleries have custom fields with link(s) to the specific post on the website related to those galleries, but when clicked.. they go nowhere?
I have defined a link for gallery custom field, and at least one image, with the same path.. am i doing something wrong?
Hi
Have a look at this thread http://wordpress.org/support/topic/298551
Quite a bit of detail there on how to use custom fields as links.
thetvstop
Member
Posted 2 years ago #
i did this and it didnt work. perhaps should I also edit the album file with the same, since I am displaying albums?
Yes, the files mentioned in the above thread refer to the templates that person was using to display their gallery.
If you are using different templates, then those are the ones you need to edit.
thetvstop
Member
Posted 2 years ago #
it's still not working. http://www.thetvstop.com/cbs/ghost-whisperer/ghost-whisperer-season-five-episode-5-01-birthday-presence-promotional-photos/ click on the album with 5 images. all it does it take you to the top of the specific post you are viewing.
Hi
I just did a quick test, and it seemed to work fine in the album templates.
If using the extend template. replace this:
<a href="<?php echo $gallery->pagelink ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
with
<a href="<?php echo nggcf_get_gallery_field($gallery->gid, "Your Link Field Name"); ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
on line 25