Portfolio 3 columns hivatkozás Prettyphoto-val

Sziasztok!



Van egy sablon, amiben a 3 columns portfolio rendezést prettyphoto-val oldják meg. Ez tökéletesen működik, viszont a bélyegképre kattintva egy lightboxot ad be benne a rövid leírással és képpel, nem az adott bejegyzést, ami hozzá tartozik.



Keresgéltem, de még nem jöttem rá, hogy mivel is lehetne megoldani azt, hogy a bélyegképre kattintva a hozzá tartozó hivatkozást adja be.



Csatoltam 2 fájlt is, hátha így egyszerűbben rájövünk a megoldásra.



Ha valaki tud segíteni, azt megköszönöm!

three-column:

<?php<br />
/**<br />
* Template Name: Portfolio 3 Columns<br />
*<br />
* @package WordPress<br />
* @subpackage Invictus<br />
* @since Invictus 1.0<br />
*/<br />
<br />
get_header();<br />
<br />
wp_reset_query();<br />
<br />
// set the image dimensions for this portfolio template<br />
$imgDimensions = array( 'width' => 190, 'height' => 134 );<br />
<br />
$itemCaption = true;<br />
$hideExcerpt = true;<br />
<br />
?><br />
<br><br><br><br />
<br />
<div id="primary2"><br />
<br />
<div id="primary2title"><br />
<br />
<h1 class="page-title"> </h1><br />
</div><br />
<br />
<div id="primary4"><br />
<br />
<div id="single-page" class="clearfix left-sidebar"><br />
<br />
<div id="primary" class="portfolio-three-columns"><br />
<div id="content" role="main"><br />
<br />
<br />
<br />
<br />
<br />
<?php<br />
// including the loop template gallery-loop.php<br />
get_template_part( 'gallery-loop' );<br />
?><br />
<br />
</div><!-- #content --><br />
<br />
<div id="primary3a"><br />
<div id="primary3"><br />
<br />
<br />
</div><br />
</div><br />
<br />
</div><!-- #container --><br />
<br />
<div id="sidebar"><br />
<br />
</div><br />
<br />
</div><br />
<br />
</div><br />
<br />

galery-loop:

<?php<br />
/**<br />
* The loop that displays portfolio items.<br />
*<br />
*<br />
* @package WordPress<br />
* @subpackage invictus<br />
* @since invictus 1.0<br />
*/<br />
<br />
global $imgDimensions, $substrExcerpt, $itemCaption, $shortname, $paged, $meta, $the_term, $taxonomy_name, $page_obj, $hideExcerpt;<br />
<br />
//Get the page meta informations and store them in an array<br />
$meta = max_get_cutom_meta_array();<br />
<br />
// store current page id<br />
$page_obj = get_page($post->ID);<br />
<br />
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;<br />
$pageInfo = get_post_meta($post->ID, 'max_show_gallery_info', true);<br />
<br />
// get page template<br />
$custom_fields = get_post_custom_values('_wp_page_template', $post->ID);<br />
$p_tpl = $custom_fields[0];<br />
<br />
// get post order & sorting<br />
$order_string = $meta['max_gallery_order'];<br />
$order_by = "&orderby=".$order_string;<br />
<br />
$sort_string = $meta['max_gallery_sort'];<br />
$sort_by = "&order=".$sort_string;<br />
<br />
// If template is a standard portfolio template<br />
if ($p_tpl == "template-one-column.php" ||<br />
$p_tpl == "template-two-column.php" ||<br />
$p_tpl == "template-three-column.php" ||<br />
$p_tpl == "template-four-column.php" ){<br />
<br />
// query posts for the above templates<br />
$posts = max_query_posts(PER_PAGE_DEFAULT, $meta['max_select_gallery'], $order_string, false, $sort_string);<br />
<br />
}<br />
<br />
// if template is a fullsize grid templat<br />
if($p_tpl == "template-grid-fullsize.php" ) {<br />
$pageInfo = false;<br />
$posts = max_query_posts($meta['max_gallery_per_page'], $meta['max_select_gallery'], $order_string, false, $sort_string);<br />
}<br />
<br />
// Template is the Sortable Grid Temp late<br />
if( $p_tpl == "template-scroller.php" ){<br />
$pageInfo = false;<br />
// query posts for the above templates<br />
$posts = max_query_term_posts( 9999 , $meta['max_select_gallery'], 'gallery', $order_by, GALLERY_TAXONOMY, $sort_string );<br />
}<br />
<br />
// Template is the Sortable Grid Temp late<br />
if( $p_tpl == "template-sortable.php"){<br />
$pageInfo = false;<br />
// query posts for the above templates<br />
$posts = max_query_term_posts( 9999 , $meta['max_sortable_galleries'], 'gallery', $order_string, GALLERY_TAXONOMY, $sort_string );<br />
}<br />
<br />
?><br />
post_password || $post->post_password == "") { ?><br />
<br />
<br />
<br />
<ul id="portfolioList" class="clearfix portfolio-list"><br />
<br />
<br />
<br />
<?php<br />
$_term_classes = "";<br />
<br />
// check if the template is a quicksand sortable template<br />
if( $p_tpl == "template-sortable.php" ){<br />
<br />
// get the term slug and display it as class list<br />
foreach( @get_the_terms( $post->ID, GALLERY_TAXONOMY) as $term ) {<br />
$_term_classes .= $term->slug." ";<br />
}<br />
<br />
}<br />
?><br />
<br />
<li data-id="id-ID ?>" class="item "><br />
<div class="shadow"><br />
<?php<br />
<br />
// get the gallery item<br />
max_get_post_custom_image();<br />
<br />
if($itemCaption === true) {<br />
<br />
// check if caption option is selected<br />
if ( get_option_max( 'image_show_caption' ) == 'true' ) {<br />
<br />
?><br />
<br />
<div class="item-caption"><br />
<strong></strong><br /><br />
<?php<br />
if( $hideExcerpt === false || !$hideExcerpt) {<br />
echo get_the_excerpt();<br />
}<br />
?><br />
</div><br />
<br />
<?php<br />
}<br />
}<br />
<br />
?><br />
</div><br />
<br />
<br />
<?php<br />
<br />
// check if additional options is selected<br />
if ( $pageInfo == 'true' ) {<br />
<br />
?><br />
<br />
<div class="item-information"><br />
<ul><br />
ID, $shortname.'_photo_copyright_link_value', true) != "" ){ ?><br />
<br />
<li>: <a href="ID, $shortname.'_photo_copyright_link_value', true) ?>" title="ID, $shortname.'_photo_copyright_information_value', true) ?>" target="_blank">ID, $shortname.'_photo_copyright_information_value', true) ?></a></li><br />
<br />
<br />
<br />
<li>: ID, $shortname.'_photo_copyright_information_value', true) ?></li><br />
<br />
<br />
<br />
<li>: <span>ID, $shortname.'_photo_location_value', true) ?></span></li><br />
ID, $shortname.'_photo_date_value',true) != "" && max_is_valid_timestamp(get_post_meta($post->ID, $shortname.'_photo_date_value',true)) === true ){ ?><br />
<li>: <span>ID, $shortname.'_photo_date_value', true)) ?></span></li><br />
<br />
<li>: <span>-</span></li><br />
<br />
</ul><br />
</div><br />
<br />
<?php<br />
}<br />
?><br />
<br />
</li><br />
<br />
<br />
<br />
<br />
<br />
<h2></h2><br />
<br />
<br />
<br />
</ul><br />
<br />
<?php<br />
/* Display navigation to next/previous pages when applicable */<br />
if (function_exists("max_pagination")) {<br />
max_pagination();<br />
}<br />
?><br />
<br />
<br />