SHARE
TWEET

Untitled

a guest Oct 13th, 2011 36 Never
  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.  
RAW Paste Data
Top