Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 13th, 2011  |  syntax: None  |  size: 0.28 KB  |  views: 27  |  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
  2.  if ( has_post_thumbnail()) {
  3.    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
  4.    echo '<a href="' . $large_image_url[0] . '" title="' . the_title_attribute('echo=0') . '" >';
  5.    the_post_thumbnail('thumbnail');
  6.    echo '</a>';
  7.  }
  8.  ?>
  9.  
clone this paste RAW Paste Data