Quantcast
Channel: Site5 Free Premium WordPress Themes » All Posts
Viewing all articles
Browse latest Browse all 8865

Reply To: portfolio item click to URL

$
0
0

OOPS….not sure what happen to code that I posted above. Here’s the correct code that I’m trying to edit. t

<div class=”portfolio-item-hover-content”>

<?php
$thumbId = get_image_id_by_link ( get_post_meta($post->ID, ‘snbp_pitemlink’, true) );
$thumb = wp_get_attachment_image_src($thumbId, ‘portfolio-thumbnail’, false);
$large = wp_get_attachment_image_src($thumbId, ‘large’, false);

if (!$thumb == ”){ ?>

” title=”<?php the_title(); ?>” data-rel=”prettyPhoto” class=”zoom”>View Image

” alt=”<?php the_title(); ?>” class=”portfolio-img” width=”220″ />
<?php } else { ?>
/library/images/portfolio-img.png” alt=”<?php the_title(); ?>” width=”220″ class=”portfolio-img” />
<?php } ?>

<div class=”hover-options”></div>
</div>


Viewing all articles
Browse latest Browse all 8865

Trending Articles