Have you considered using the ACF plugin? ACF has a very convenient field type – gallery. I think it would match what you want a 100% without the need to poke around the native/custom DB queries. Check it out.
Related Posts:
- Replace image attributes for lazyload plugin (data-src)
- Unattaching images from a post
- How to wrap every image in a post with a div?
- how to replace embedded “full” sized images within a post with the “large” ones
- wp-cli post create & media import issues
- Modified core/image rendering not showing in posts – only on pages
- Customizing individual images on posts
- Custom Post Types, slug, archive and SEO plugins
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- How to get Images included in Post
- How to disable drafts?
- how to enable different number of revisions for different blogs when using WPMU?
- Custom Post Type Pagination Doesn’t Work in WordPress 3.4
- how to display post content without post image?
- Load post content into div with ajax
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- Add an image box besides featured image?
- Remove inline width from figure
- Using Custom Posts with Metaboxes and Drop-downs
- How to show featured image in custom post type dashboard post page
- Remove permalink from images when inserting into post
- Archive Page for Custom Post Type is not Working
- Posts vs. Pages
- Dynamic carousel on individual posts
- Filter Custom Post Type by Category with Ajax
- How to add pagination in between post and comments?
- Featured Image uploaded, attached and set but only appearing in the media library
- Errors when uploading images in WP 3.5
- Print all the tags from a custom post type Please
- Display multiple custom taxonomy values on single custom post types page?
- Get all attachment by post excluding featured and content inside
- Custom loop pagination links not working
- Unable to restore from backup – how to obtain old blog posts?
- Get attachments for posts that belongs to a specific category
- Getting value from get_post_custom
- custom post template file not shown, instead all the time 404.php
- Set Default Category to Username
- Issue where WP Featured Image will not display
- show custom post type category dropdown sorting result on same page
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- Remove Featured Image & All Media Uploaded to the Post
- Custom taxonomy archive page problem
- Tell WP to use a specific template file in posts
- preg_replace not removed “class”
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Disable posts generated from image uploads
- if in category but only with post meta
- How to add convenient buttons for new custom post statuses
- Images showing up in Post Editor, but not in Published Post
- Auto delete posts based on content text
- How to call posts under a specific category on static front page?
- Display value of custom field at the beginning of a post
- Hide thumbnail if there is a gallery on the post
- Image on rss feed on post
- Optimize CPT-function with a loop
- Where to insert the other site image url for our wordpress post
- select post preview image from nextgen gallery
- How to display only one category in a custom post type?
- add_rewrite_rule and template redirect not working
- Changing permalink of WordPress
- Hook save_post_cpt not triggered when custom fields are modified
- Turn off display for custom sidebar post widget when on the post it’s displaying
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- Hide or remove custom post status
- Put page on Archived statut after end of publication date
- Center crop the feature image
- post and page and custom post type
- ‘posts’ table should not store the absolute image path
- My posts page is missing the page title
- Show custom post category for single post
- How to make an image appear as a thumbnail in the blog post?
- How can change header text in post careate/edit form
- Add Categories To Custom Post
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- Permalink base only for posts
- Difference between modified post and new post
- How can I alternate styling of images in a post? [closed]
- issue in wordpress auto delete post and redirect to another 1
- wp query custom orderby not custom field
- Custom Single Post Type not referring to single-post-type.php File
- Update all images url imported from HTML pages
- How to modify specific parts of a post content in WordPress
- Include post on external custom site
- Run Jquery Script after delete post in front end
- “Current” class on a singular page menu item with custom post types?
- Post thumbnail dependant on category
- Latest news mini images
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Only show posts with image and the correct ammount of posts in loop
- Display ONLY Latest Post From Several Categories
- Extra Theme – Fit image inside of Featured Post Slider
- custom post type single page template not working
- Display post structure in function
- Full width images within post content
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- website images getting corrupt automatically