You’re using a get
function, which does not echo by default. Update the PHP portion to the following:
<?php echo wp_get_attachment_image($image, 'category-large-thumb' ); ?>
Also, wp_get_attachment_image() returns a full image object – so I don’t think that’s what your after.
It also most seems like you’d just want the_attachment_link:
<?php the_attachment_link( $id, $fullsize, $deprecated, $permalink ); ?>
So – it’d turn into:
<?php the_attachment_link(get_post_meta($post->ID, 'image_medium', true)); ?>
Related Posts:
- WordPress remove EXIF Data from specific Thumb
- Additional image sizes are not being generated
- hover image appears below placeholder instead of overlayed
- How to use thumbnail size of image if I’m only using src to get image
- Else/If Statement to Display Photo Descriptions
- How to Make Thumbnail of Post Stay Animated
- How do I change/modify the_post_thumbnail(); html output?
- What’s the best way to use the Featured Image for responsive web design?
- How to add a class to the attachment images
- How do I hook into WordPress to save an uploaded photo as an alternate size to an existing photo?
- How to check if image is already stored in a site’s post database? (network)
- Adding a custom image upload size and making it selected by default?
- Hide custom image sizes from media library
- Change the filename format of saved featured images
- How to draw media details for Isotope gallery using Photoswipe
- How to register images uploaded via FTP in media library?
- Create Image Uploader for Widget
- Using file_exists to check file in Uploads
- Permanently remove first image from posts
- retrieve thumbnail from post ID of best selling product in category
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Admin Media grid view images won’t load
- Debugging upload problem: What part of WP does actual image-resizing?
- How to resize image on client-side before upload?
- Adding Featured Image to Post programatically
- Add custom image sizes to media uploader
- Conditional Statement – check if post has an attachment image
- How to upload imagick resource to media in wordpress
- How to use SRCSET with get_the_post_thumbnail()?
- Use Filename for Alt and Title Tags
- Change Width of Featured Image Thumbnail on Add/Edit Post Page
- Get a Page’s attachments in Gallery order
- Use Timber/Twig to pull an image by image ID [closed]
- Adding graphics to 404.php page
- How do I get images (with a thumbnail preview) to show in search results?
- How to get custom image size for image uploaded in Customizer
- Add custom HTML to posts page
- Strip Image Classes from HTML Output
- Using wp_get_image_editor in a standalone script
- Adding a querystring to an image URL when clicking ‘insert into post’?
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Assign a picture URL to a page via PHP
- How to insert a local image with custom size
- Change logo based on incoming domain
- Styling images coming from another blog
- How to scale image with equal width and height without distortion?
- Theme currently showing thumbnails, how to show full size?
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Get most recent media upload
- IMG src weird behaviour inside a single post loop
- Convert all images to PNG on file upload
- Escape post image attachments added to template
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- Auto crop images in WordPress
- Display post image with fancybox
- How to get media objects
- PHP code to call image Caption, Alternative Text, and Decription?
- Echo URL of large version of Featured Image
- How do I let users upload files to a chosen location?
- Change the URL of an image from wp_get_attachment_image_src except in the frontpage
- Get different images for mobile and desktop with php, advanced custom fields without using js and ajax
- How to get specific image in media library with php
- combine Code 1 with Code 2
- add_image_size for header_image
- Add custom url to featured image
- Get image’s size name from it’s dimension
- Cannot display or echo alt text on featured image
- Trying to remove post thumbnail with plugin
- Recent posts with featured image or fallback image with permalink
- Best practice for migration friendly images in posts/pages?
- Set the background to a default image if there isn’t a specified “featured image”
- Mass update excerpt
- How to control WordPress image metadata (using Imagick)?
- Get the post ID and display the images
- Responsive Header for Phone
- Reprinting tags with all attributes
- How to get next image with this code from same post?
- Unread Repeater field IMG alt not working
- Can’t upload image using media_sideload_image
- Upload multiple images to a Woocomerce product
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Accessing an image folder inside public web directory
- get_children displaying images removed from the page
- Why is image hard cropping for one image using add_image_size not working?
- Enable custom logo upload if logo is not in header
- Why my image upload button is not working in wordpress widget area?
- Scrape external webpage for first image and add it to new post
- How to make own crop image function for WordPress plugin
- “imagejpeg” function is not working in wordpress
- Display image from an external rss feed on wordpress without plugins
- WordPress automatically adds links to uploaded images
- Thumbnails appear to be zoomed
- WordPress function when file is uploaded, deleted or edited
- ‘Post-thumbnails’ feature does not seem to register
- Download images from media library to computer in BULK?
- Three Questions with Twenty Eleven theme
- get taxonomy thumbnail and use it as a variable in code
- How to loop through all the attached images in a post, and get their url one by one
- Which function crops images in wordpress?