This is the way to get featured image in wordpress..
just paste this code where you want to get featured image in wordpress..
just paste this code where you want to get featured image in wordpress..
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );?>
<img src="<?php echo $image[0]; ?>" />
No comments:
Post a Comment