Created
June 14, 2013 18:47
-
-
Save ajtroxell/5784258 to your computer and use it in GitHub Desktop.
Add Pinterest and Google+ Sharing without JS: http://ajtroxell.com.dev/pinterest-and-google-plus-share-links-without-javascript/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo gangmei_get_the_post_thumbnail_url($post->ID, 'large'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Get only the image url link by http://blogcastor.com from http://ajtroxell.com | |
function gangmei_get_the_post_thumbnail_url( $post_id = NULL ) { | |
global $id; | |
$post_id = ( NULL === $post_id ) ? $id : $post_id; | |
$src = wp_get_attachment_image_src(get_post_thumbnail_id($post_id), 'full'); | |
$src = $src[0]; | |
return $src; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment