Created
January 30, 2015 16:44
-
-
Save shahidulislamus/f593b18f3eb760d63679 to your computer and use it in GitHub Desktop.
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
// If you want to use image link | |
$image_variable = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' ); echo $image_variable[0]; | |
// If you want to use your custom size | |
$image_variable = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-image' ); echo $image_variable[0]; | |
?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment