Advertisement
wpexplorer

Surplus Featured Image

Jan 22nd, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  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 } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement