You are saving only one image and one image caption. Your loop in dsslider_manager_save_extras function loops throught global $custom_meta_fields defined in php file. Not through $_POST variable. Your loop should look something like this:
foreach ( $_POST['fields'] as $field ) {
...
}
In HTML, the form should look like this
<input type="hidden" name="fields[$field[ID]]" value=""/>
You can read more on this topic here: https://stackoverflow.com/questions/2433727/submitting-a-multidimensional-array-via-post-with-php
Related Posts:
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Redirect to another page using contact form 7? [closed]
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Custom Fields for Page Edits
- Table of contents (TOC) plugin is not showing header tag
- Create multiple posts when a custom post is created
- How to get post that has non zero or greater than zero meta value
- How can I call functions from a custom plugin?
- Creating Nested custom fields
- Problem with conditional woocommerce custom checkout field
- Creating a user ‘add custom field’ section
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- WordPress Meta Query: Relation is not working correctly
- Integrating WordPress Content into a jQuery Slider
- Outputting custom field query from a plugin to the website header
- Need to add custom cart item data
- Best way to initiate a class in a WP plugin?
- Stop a plugin in the activation process when a certain WP version is not met then show error message in admin_notices action hook
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to Add an Index to Plugin Database table
- How to safely sanitize a textarea which takes full HTML input
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Why activate_plugin is not working in register_activation_hook
- Best Practice for Referencing the Plugin Directory
- Creating two database tables via plugin
- Is it a good idea to edit an already existing plugin to add more functionality?
- Custom Filter in WordPress to modify footer information via plugin?
- Query Posts by Custom Field ‘Price’
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- Editor access to plugin settings
- Adding Custom Fields for Img in Posts
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- Plugin child folder?
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Retrieving plugin options value saved through setting
- How to ‘clone’ a wp plugin to make small changes
- MITM risk of not sanitizing?
- How to slice an array using posts_per_page? [closed]
- Enqueue WordPress plugin scripts below all other JS
- White page by using filter template_include
- Is there any kind of theme on WordPress to sell my own movies?
- User switching only with specific role and return
- Fromcraft Plugin On click submit button [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- How to redirect users to their profile after they successfully edit their profile
- Which file of wordpress manage plugins functionalities?
- I should enable automatic updates?
- How to add custom table style for table block in gutenberg editor
- Issues with a WP plugin menu system
- Different custom templates for product category [closed]
- Add a “View all” button on WooCommerce product archives pages
- How do I add an options page at the bottom of the list?
- Unable to give correct path in wordpress
- Disable variations on woo commerce if out of stock
- How to add img into a plugin?
- A question of etiquette when forking a plugin? [closed]
- how to request a script more than once in wordpress
- How to log custom plugin error to debug.log file
- wp_options not returning value for logged out users?
- Gutenberg default attributes are empty when accessing in edit
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- Best approach to make all tags searchable by the wordpress search function
- How to create admin setting for this small plugin
- Hide all Admin Notices and move on a separate page
- How to fix caching issue in PHP data from database
- Adding shortcodes to multiple pages with function
- SASS not showing in customized preloader plugin
- How to securely controlling data without keeping it in postmeta?
- Why Custom fields description is not working WordPress Version 5.4.2?
- Problem Advanced Custom Fields PRO
- Get a list of Product Categories inside a loop
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- Using multi-dimensional array with filter
- WordPress plugin changes not updating
- PHP header() not available to use in my plugin
- wordpress ajax pagination object value does not change
- WordPress doesn’t save a post revision when changing CMB2 custom fields
- How to Save settings of custom tab product page in admin side in a database?
- Google analytic issue in wordpress
- Custom pages with plugin
- How to insert category name above post title in a featured pages plugin?
- Displaying friend’s posts only
- What’s the preferred method of writing AJAX-enabled plugins?
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Shortcode registered from a plugin not recognized
- wp_update_post call really slow when official Facebook plugin is installed
- How to set-up multiple cron task with wp_schedule_event so that they do not overlap?
- Woocommerce custom fields
- Site is setup statically – how to make it content managable?
- Modifying lightbox plugin to allow for quoting, Does this exist? [closed]
- Plugin version number after code rewrite [closed]
- How to escape html code?
- Plugin Block at the backend of every page or post
- How to provide page_template path in custom plugin using WordPress
- How to add a react element into the DOM node (only on the user-interaction like on click) without using the state?
- WordPress theme development – the template dropdown in Pages and disappeared