Advertisement
Guest User

Untitled

a guest
Apr 29th, 2013
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. <a href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&media=<?php if (has_post_thumbnail( $post->ID ) ): ?>
  2. <?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘single-post-thumbnail’ ); ?>
  3. <?php echo $image[0]; ?>
  4. <?php endif; ?>&description=<?php the_title() ?>"><img src="http://farm9.staticflickr.com/8398/8693188926_538082c90a_t.jpg"/></a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement