If its your own custom post type you should know the field names? Iterate through the fields – or better just get the required field – an then use the attachment Id with wp_get_attachment_image_src.
http://codex.wordpress.org/Function_Reference/wp_get_attachment_image_src
Chech the codex for further examples and Google for “WordPress custom post type fields”.
Related Posts:
- How do I get the avatar URL instead of an HTML IMG tag when using get_avatar?
- Programmatically get images by URL and save in uploads folder
- Function to get URL of original uploaded image – full size
- How to reference a theme image in a stylesheet?
- Mixed content warnings after changing site adress from HTTP to HTTPS
- Preview Image Path in Admin Section
- Why would image paths in wordpress suddenly change?
- Remove the http protocol from images
- How do i reference the theme path in pages for images?
- Regenerate missing _wp_attachment_metadata
- @wordpress/create-block image url in css
- WordPress url image redirect to the homepage
- Broken urls with http site and https wp-admin
- A way to change image urls in post to cdn image url?
- How to change image url?
- Update image links in database
- Shortcode for a link and thumbnail
- Retrieving an alt tag from a custom field
- media_sideload_image with rewritten urls?
- Get thumbnail url of custom meta image?
- Dynamic tagged image galleries
- How to add an image to a custom url?
- images not showing after transfer
- Change media URL (images)
- Generate images to be associated for tag and category?
- Display an icon with get_post_meta?
- How to redirect homepage to actual URL?
- Clicks registering on Preview DNS site
- Remove “%” from strings in serialized arrays in wp_postmeta
- Is it possible to enable the ‘Link To’ field under ‘Attachment Display Settings’ for a Featured Image?
- Using a .pdf file as a page in wordpress
- How to get image URL from media_sideload_image?
- Exclude image url from search query
- Redirect Image Url to a page via htaccess
- How to pass on a value as parameter via url to another page
- Image not showing using a custom function and get_post_meta
- How to replace post image url before posting using api?
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Hide or mask the url to an image
- Glitched page redirects to image
- i want to change URL of WordPress image or rewrite in runtime
- How to Display Image Caption but Not Alt Text
- Adding Facebook’s image and meta description retrieval capabilities to a WordPress post
- How to show a full page when someone links directly to an image on my site
- Bypass wp_safe_remote_get()?
- Which tools should I use for a gallery that uses an API and url for the path of the images?
- List sub pages with custom field content converting image ID to URL
- get_post_meta returning broken path in image src
- Adding Image Description below Images Inserted into Posts
- Change the image for a certain URL
- Setting name of attachment URL
- Search and replace image urls in posts
- Protocol relative url not pulling up images on IE, FF, and OPERA
- Broken image URL
- How do I mitigate the forward slash problem for URLs of images after a WP migration?
- Images in sub-pages fail to load
- Are image addresses security relevant?
- Remote Image (from URL) as Media Library element
- WPALLIMPORT Exporting images from repeater field [closed]
- Maintaining image color and quality when uploading using custom sizes
- Bulk edit wordpress images alt and title attributes
- Upload Image Not accessible
- Caption in Page adding unwanted 10px to width
- How to add a media with PHP
- Get original image from thumbnail URL
- Bulk image rotation
- Pull Random Attachments With Pagination
- Upload media files to Amazon S3
- How to get default image sizes attribute
- Image not shown in the theme as it’s showing in HTML template [closed]
- Broken Images until Page Refresh
- Get image from parent category
- Images attached to posts from library link to 404 error page
- 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?
- Allow users to contribute images to a post
- Save Image in wp_options-Table
- Image upload error?
- Random home page background images with caption text
- How to add “alt” attribute for image during upload at WP front-end?
- Excluding post thumbnail from the attachment.php when using wordpress gallery
- WordPress PHP custom function is causing 500 Internal Server Error Connection Timeout
- Post-processing of the image failed
- Get post thumbnail in specific size
- Text not wrapping properly around image in WordPress Visual Editor [closed]
- Resize images to match CSS
- Featured image appears in header
- Preventing the image-post problem from ahead (edit: without redirects)
- 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?
- Images not showing on homepage after migration [duplicate]
- add_image_size() width not actually working
- Black and White Thumbnail in WordPress Gallery
- Saving a post, content filtering and user levels
- How to extract specific image meta for all images?
- I am having trouble displaying an image at the top of a widget area [closed]
- Can’t upload svg files in WordPress