you need to echo it.
example:
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full');?>
<img src="https://wordpress.stackexchange.com/questions/105201/<?php echo $src[0] ?>" />
Related Posts:
- Separate Media Library for each user
- Maintaining image color and quality when uploading using custom sizes
- add_image_size() zoom-crop
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Which are precisely the predefined image sizes?
- Caption in Page adding unwanted 10px to width
- Adjust image caption within visal editor
- Change Image URL to a CDN
- Why can’t I edit certain images from the WordPress Media library?
- How to add a media with PHP
- Responsive Images – Add srcset attributes to custom Images Function
- Get original image from thumbnail URL
- Loss of sharpness in jpg imported as header in twentyeleven
- WordPress url image redirect to the homepage
- Bulk image rotation
- Can I the caption shortcode to set caption to a data attribute, and with the image’s alignment intact?
- Is there a way to delete images from WordPress media library programmatically?
- get the image of the post
- Update image links in database
- ACF Image ID, echo the alt tag
- Change WordPress Media Manager
- How to stop images from being wrapped in tags?
- Pull Random Attachments With Pagination
- Upload media files to Amazon S3
- Out of memory error reporting
- How to get default image sizes attribute
- Remove the inline styling added in wp_get_attachment_image()
- Image not shown in the theme as it’s showing in HTML template [closed]
- Broken image links even though links are correct and images exist
- Broken Images until Page Refresh
- Get image from parent category
- Images attached to posts from library link to 404 error page
- Images not displayed when moving site to local
- Caption and title in img alt tag are the same?
- fetch images and videos
- Specific image size is being generated without being registered
- Should I not compress my jpeg files before uploading to avoid double compression?
- Generating a certain sized thumbnail on the fly?
- How to display title of attached image in post?
- Getting thumbnail of uploaded image
- Display image for first sticky post only
- Get all image IDs from the Media Library
- Link listings with image
- Allow users to contribute images to a post
- Can’t add image to site via php
- After Migration, images show up on a preview of the page but not the actual page [closed]
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- How to apply image alt descriptions from media library?
- Save Image in wp_options-Table
- Can I register a new thumbnail size and have it be an option in “Add Media”?
- Image upload error?
- Is it possible to get feature image url (full-size) from an image url of smaller size?
- How to make Custom Loop not crop featured images?
- How to pass on a value as parameter via url to another page
- Image not showing using a custom function and get_post_meta
- Random home page background images with caption text
- How to add “alt” attribute for image during upload at WP front-end?
- Get Original Dimension Featured Image on the homepage
- WordPress keeps resizing my 947×947 image down to 500×500 (full-size option)
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- Featured Image Thumbnail size on Twenty Ten Archive Page
- attach several images to post + gallery
- Widget Style – Icon Type
- WordPress Problems
- Pictures randomly replaced by blue question mark
- WordPress PHP custom function is causing 500 Internal Server Error Connection Timeout
- Post-processing of the image failed
- Get post thumbnail in specific size
- How to skip the creation of landscape thumbnails for an original portrait image
- How to trigger “wp_handle_upload_prefilter” filter when uploading an image programatically?
- How to add element to the list of adjacent images?
- Why are my button images blurry on mobile screens?
- Text not wrapping properly around image in WordPress Visual Editor [closed]
- Why do images inserted in the post content via the_content() go off the max-width?
- Broken images in media library
- How to regularly backup and update WordPress website with lot of images?
- Resize images to match CSS
- Featured image appears in header
- Preventing the image-post problem from ahead (edit: without redirects)
- Fatal error: Allowed memory size in PHP when allocating less
- Resized images not working – 404
- How to put images into theme from server folder (not from media library)
- How can I stop WP Image Editor upscaling from looking so pixellated?
- Declare global variable that can be used on other function
- How to show images uncropped after uploading?
- add_image_size() width not actually working
- How to replace all images within exported xml files to demo.jpg?
- Black and White Thumbnail in WordPress Gallery
- How to specify image width and/or height attributes for images uploaded using WordPress uploader
- Multiple gallery thumnbnails on one page
- Change image link in excerpt to point to post
- Putting the title attribute in image tag — Snapshot Theme from Woothemes
- Post migration – images do not display
- wp_handle_upload Image sizes
- Display Images from Array with wp_get_attachment_image() [closed]
- I am having trouble displaying an image at the top of a widget area [closed]
- Can’t upload svg files in WordPress
- Images uploaded in customized gallery do not link to media
- WordPress Site Broken and it gives Headers Already sent error