Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

Surplus Featured Image

By: wpexplorer on Jan 22nd, 2013  |  syntax: None  |  size: 0.44 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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 } ?>
clone this paste RAW Paste Data