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]
- All WordPress Website Images Broken
- 409 error (Conflict) when trying to insert an image into a post
- Exclude image titles from search results
- Does WP create multiple images?
- Thumbnails generated by “add_image_size” are not removed when removing media
- WordPress 3.0 embedded images
- TImthumb not working for absolute path
- Correctly implementing the Facebook Like button
- Change image name during uploading sequentially
- Store in media library image uploaded from url
- Get images attached to a specific page
- add_image_size function not working
- image resizing on post content without css and html tags
- Stop WordPress compressing images? – Quality is terrible
- link featured image to external link
- Using mysql to replace img src?
- wordpress add image size crop function not working in version 3.8
- Cache issues with images not showing up
- Specific Days, Specific image on Front Page
- Doing a bulk replace of images through back-end
- Can I achieve this with WordPress?
- I would like to set a FULL SCREEN background image to all my pages (same way it is on my home page)
- How to change a theme’s footer image
- Can’t upload Images to WordPress – Error 500 Response
- Enlarge Featured WordPress Images
- WordPress 4.4.2 upload give error, can’t write is upper directory allowed to be written
- How to attach 1000’s of unattached images
- Images are not getting uploaded
- Unable to delete images in Media Library
- click on Gallery picture but pictures doesn’t appear
- set specific dimension or minimum upload size [duplicate]
- Assigning image to Post-Type won’t work anymore: exceeded time?
- How to add a meta information to the URL?
- Content around featured image
- Getting featured image of blog page rather than post image
- Add custom version to an image
- get_theme_file_uri function not showing background image inside data-setbg in html
- Media Library shows default image instead of image preview
- Uploading media to wordpress API with C# HttpClient
- How to add image alt attribute to the thumbnail code
- Critical error on image display