My first recommendation would be to use Advanced Custom Fields to setup a gallery rather than using this method.
However, I think you may be able to load your images using Add Media -> Create Gallery
which will add a shortcode to your post content
You could then use the_content filter and strip_shortcodes to remove this shortcode from the_content();
on your template. Hopefully you can then use get_post_gallery() or get_post_gallery_images() to retrieve the images you need for your carousel.
But try Advanced Custom Fields – it’s much easier!
Related Posts:
- Detect if is image unattached
- Retrieving a custom link on an attachment
- how to test for attached image
- Gel all image from certain post type
- ID of images from gallery
- Hide “Gallery Settings” and “Insert into Post” button from Attachment window
- Getting attachment images is cloning some of them
- How to make a customized “Create Gallery” tab in the ‘Add Media’ window?
- Reorder “menu order” of attachments to another predefined order
- Add image attachment to post via coding?
- Ordering of gallery images without using shortcode in theme
- Custom Gallery HTML only working when images are attached to post/page
- Display random gallery images and its parent post title leading to parent post permalink
- Where does the gallery shortcode gets its attachments from?
- WordPress Gallery Permalink Structure Displaying Incorrectly
- How do I get just the title from wp_get_attachment_image
- changing the default picture size link url
- Programmatically Altering Gallery Link and image size?
- How is it possible that a gallery doesn’t have attachment ids?
- ID of images from gallery
- How to save media-form on custom tab
- Gallery Thumbnail Layout Template
- getting attachement images src and add classes
- Is it possible to query all posts that don’t have an attachment?
- How to paginate wordpress [gallery] shortcode?
- Are captions stored anywhere?
- get_the_post_thumbnail() doesn’t taking style attribute
- complex restriction of items in media library
- Remove duplicate attachments
- Edit image / Delete image link
- How could I add button next to “edit image” button in “Attachment Details”
- media_sideload_image file name?
- Give attachments an archive page
- Insert Media – Attachment – Link to : Remove the “attachment page” option
- Show Post ID in “Find Posts or Pages” box in Media Library?
- Delete attachments from Front end
- Creating a multi-file upload form on the front end for attachments
- get post attachments of a particular size
- How to upload image from front end and save in media library?
- How to create a CSV on the fly and send as an attachment using wp_mail?
- Prevent Duplicate Attachment When Using wp_insert_post
- Attachment 0×0 size error [closed]
- Contact Form 7 Data As Attachment [closed]
- Post Via Email – How to send Attachments with it (e.g. PDF File or JPEG Image)?
- How do I link an image to the post it is attached to?
- media ‘path’ issue / concern when bringing files live
- Split loop to load WordPress gallery into Bootstrap modal and carousel
- How can I attach Facebook Open Graph data to an Attachment Page?
- “Scattered” gallery
- Open the Attachment Details popup
- Attachment page 404
- Set Attachment Image File URL as GUID
- How to compress image before inserting to wordpress using wp_insert_attachment function?
- Getting “too many redirects” when using wp_redirect for attachment page
- How to update the title of audio file through its attachment metadata
- Change default selection for “Embed or Link”?
- How can I make an attachment page for pdf uploads?
- Proper use of wp_get_attachment_image?
- Get title of post image is attached to
- the_time() returning wrong date/time (way in the future)
- Add audio attachment link to RSS
- Correct attachment size
- How to: Retrieve an attachment image from post and output it
- Gutenberg Block: Image resolution
- Attach a external file as attachement using wp_mail
- Get image attachment to a post outside the loop?
- Could not get attachment using wp_mail
- Looking to limit file attachment downloads
- 500 internal error at wp_generate_attachment_metadata
- How can I return multiple image attachments with wp_get_attachment_image_src
- How to let a role handle media without post permissions
- Use full size images in a specific gallery
- Will wp_get_attachment_metadata display PDF metadata (eg: keyword, author, description)?
- i want attachment.php to return the image
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- List all files from subpages
- Add videos/images preview to bbPress attachment
- Change attached img anchor link to post link
- How to view exact image dimensions of a media in Admin view?
- wp_get_attachment_image_src calling wrong location
- wp_delete_attachment doesn’t delete image files / doesn’t work
- Get attachment URL from attachment Link in WordPress
- How to open an attachment based on the date picker
- Send data URL string as an attachment in wp_email
- How to use previous/next image link, ignoring parent posts/attachments?
- Using $_FILES variable into the same function for uploading images and files
- WP media attachment location vs permalink
- Removing delete permanently button in uploading files media
- Remove attached media
- Incomplete attachment page
- How to retrieve “custom url” from image attachment in wordpress
- list of attachments: wp_get_attachment_link works, wp_get_attachment_image does not
- Custom attachment field dissapearing
- How can I let users access a specific attachment?
- What is the most efficient way to retrieve a group of image URL’s from different attachment ID’s of a specific crop size?
- How to wrap this Link with an Image?
- I want to edit documents on my blog without the need to download and upload files again [closed]
- Open attachments in new tab/window
- One audio attachment, with two possible interchangeable extensions
- Attachement Meta DATA