vivalet
Member
Posted 3 years ago #
When I click on a preview image of a gallery on an album page, I would like to go to the gallery page with the gallery name in the header. Instead, I go to the album page for that gallery with the album header. Is there a fast way to change it to go to the gallery page?
vivalet
Member
Posted 2 years ago #
found the answer here:
http://wordpress.org/support/topic/231583?replies=2#post-1091223
the solution is to change line 25 in album-extend.php from
<a href="<?php echo $gallery->pagelink ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
to
<a href="<?php echo get_permalink( $gallery->pageid ) ?>"><img class="Thumb" alt="<?php echo $gallery->title ?>" src="<?php echo $gallery->previewurl ?>"/></a>
$gallery->pagelink changes to get_permalink( $gallery->pageid )