Why don’t you read the answers you get? In this answer I said to you to use get_post_meta
instead of get_post_custom
. The reason is quiet simple: get_post_meta( post_id, metakey, single )
returns a single value if single
is set to true
(RTFM!!)
If you would use get_post_meta()
, than you will get your answer. If not, try unserialize()
Related Posts:
- Image Upload from URL
- Upload images to remote server
- Each custom image size in custom upload directory?
- How to delete resized (cropped) image uploads and prevent future resizing?
- Download an image from a webpage to the default uploads folder
- After Moving a Site to Another Domain, All Images Are Lost
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Allow contributor role to upload images and not edit already published articles
- Is there a hook which fires after all thumbnails are generated?
- Limit image resolution on upload
- Rename files on upload
- How to insert images into posts without using Add Media dialog
- Using Images in WordPress – Best Practices
- Media Upload Folder – how to manage
- Prevent large image uploads
- Modifying an uploaded image with ‘wp_get_image_editor’ and ‘wp_handle_upload_prefilter’
- Upload multiple images in a custom metabox
- hook into completed image upload filter
- Saving the pre-sanitized filename of an attachment as the Title or Caption
- Prevent image upload unless exact size
- getting uploaded SVG dimensions on front-end
- Adding upload button in metabox
- Use Media upload in custom widget on wordpress 3.5
- Automating a Daily Picture Blog?
- Change the output for [gallery] shortcode
- How to copy and paste a picture found on the web to wordpress easily
- Images uploading to wrong folder
- Get attachment ID of author_meta image – Attachment Metadata
- Replace all of post’s image URLs with upload directory URLs
- How can I add the “Use as featured image” to a custom metabox?
- Image resize with image url
- How can you upload an image from within a settings page?
- How to add php to theme to show alt attributes
- How to disable post-thumbnail from generation?
- How to handle a lot of media files in the uploads folder? (+10.000)
- second featured post not displaying on page [closed]
- Change wordpress default upload path to another domain
- Widget media uploader doesn’t opens after widget save
- Broken images in media library
- Images are not getting uploaded
- Getting the Select and Crop Functionality Using Custom Fields
- Run command to optimize images after they get uploaded to WordPress
- Where to add my code to auto attach images to existing products
- How to get attachements URL from author meta and display them?
- How to stop a post from publishing if the file upload is not a image/gif
- Troubles with code for upload a image
- WAMP install acts different than live install when uploading images
- How to modify images during upload
- What is the best way to handle Ajax image upload on front end?
- Set WordPress to Create different images format later, not during upload
- 403 Forbidden when accessing image in wordpress
- After I upload a file to library its name converted to dashes
- How can I hook and edit on the fly an image uploaded
- problem with updating metabox of upload image
- Reduce Mobile Image upload size (wordpress)
- Assigning image to Post-Type won’t work anymore: exceeded time?
- The most of the images don’t appear, although URLs are correct
- Assign one featured image to multiple posts?
- Missing Images in Uploads Directory (Server Only)
- Only User Upload image Http Error
- Add two images with Sweet Testimonials
- Rename uploads filenames to POST-ID on upload
- See the all uploaded images of a user as an admin
- Broken Media Library
- Upload button in metabox not working
- Utilise WP_Customize_Image_Control to only show image picker
- 3.5.x Theme Customize: Handling Custom Control Requests
- Show uploaded images in full size
- Import existing image as a single post
- Media upload in add comment meta box
- Transfered live site to new server and images are not showing
- Limit files uploaded per folder
- Upload unnattached image from frontend
- My image rotate 90 degree
- Custom filename when pasting an image from clipboard
- How do I change a Themes Header Image?
- Media Library is not loading on grid view in admin panel
- Blurry Images WordPress 5.8.1
- Bug when uploading pictures with Arabic name characters?
- Media upload error
- wp_handle_upload Image sizes
- What type to upload image within theme options?
- Best Photoshop-WordPress workflow for editing images without re-upload [closed]
- Can’t manage to display an uploaded picture (uploaded from a custom button) in the front end
- My subdirectory sites images (except webP) are throwing to 404 page even they are exist
- Uncaught Error: Call to undefined function file_is_valid_image()
- What does WordPress media uploader do to image files on upload?
- if user role is x – show image – wordpress
- How to get WordPress to resize images for srcset?
- Uploading media to wordpress API with C# HttpClient
- Can’t upload svg files in WordPress
- Random images from uploads folder and subfolder
- Trying WP editor to load full size image (not ‘300×300’)
- “Media Library” shows as empty, despite images being present
- Upload media file failed. Uploadtest failed
- css and images in uploaddir, different response in different browsers
- How to upload multiple images to use as gallery in Kirki Framework
- How do I display a PDF thumbnail as a link to the PDF without uploading the image
- I can’t see all images in my media library – How Can I reset the index of that library?
- Featured Image add tab