SHARE
TWEET

Surplus Featured Image

wpexplorer Jan 22nd, 2013 19 Never
  1. <?php if(has_post_thumbnail() ) {
  2.         $full_featured_img = wp_get_attachment_image_src( $post->ID, 'full-size');
  3.         $portfolio_single_featured_img = wp_get_attachment_image_src( $post->ID, 'portfolio-single'); ?>
  4.                 <li class="slide">
  5.                         <a href="<?php echo $full_featured_img[0]; ?>" title="<?php the_title; ?>" rel="prettyPhoto[gallery]"><img src="<?php echo $portfolio_single_featured_img[0]; ?>" alt="<?php the_title; ?>" /></a>
  6.                 </li>
  7. <?php } ?>
RAW Paste Data
Top