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
- wordpress get meta value by meta key
- How to find out if option exists but is empty?
- Add CSS animation as Preloader to WordPress
- Pass $this to function nested in another public function of the same class
- remove custom taxonomy metabox form custom post type
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- WordPress plugin installation
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- How could I execute my plugin just in frontend (not in backend)
- Custom height/width for thickbox in WP Backend
- add action wp_head not working
- WP Plugin Developers – Accessing my wordpress site [closed]
- Next and/or previous post content
- Self deactivate plugins after an action occurs
- How to get current post user id
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- Is it possible to create Custom Post plug-in?
- switched from query_posts to WP_query, not working now?
- why doesn’t this update part of this plugin work? it take me to nothing here page
- Using a custom plugin to capture input data via Ajax and PHP
- Display post lists in 2nd paragraph
- Single API call exposed via shortcode with params
- Is there a way to test that readme looks in other language before submitting translation?
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Homemade plugin while using Themify Ultra
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- Create tabs in admin options page from custom post type loop
- ob_start() combined with wp_query
- WordPress get_avatar function not correct working
- How do I enforce users to fill a determined custom field using WyPiekacz?
- populating a form field with output from a custom plugin function
- Can I use Symfony components in a plugin that I want to submit to the WordPress plugin repository?
- Custom Login Page — wp_signon Headers Already Sent?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- How WordPress core manage the plugin installation
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Cross Sells are not being shown in Cart Page. Please Help!
- adding custom code as a wordpress plugin
- count the number of views of a post excluding own views
- How To Create A File Archive in WordPress?
- Custom Post Type, Custom Columns List
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Preset custom fields
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to add styles to a submenu page?
- How to store a secret for a plugin inside public_html
- Problem with checked box on wp car manager plugin
- Create a link that calls our custom function in WordPress
- Update a previous version of plugin when the new plugin is built from the scratch
- Load my Inline js footer area
- Custom product page’s style for printing
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Plugin json page
- How do I add a textarea (multirow) option to my WordPress plugin?
- Passing ajax variable to more than one wordpress plugin function
- search into subcategories plugin subcategory value not come
- Create Biographies
- Changing the body of mail sent to new user registration
- Why isn’t my plugin seeing other classes?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- How to tell which Plugin is displaying?
- Get Core Functionality from Within a (Secondary) Plugin File
- wp_insert_post_data filter to set category
- is there a way I can add or remove some plugin options?
- How to provide access to specific plugin to all the user roles except subscriber in wordpress
- Output pure JSON wordpress
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to remove a rel=”nofollow” using call to action plugin
- Activate plugin button do nothing [closed]
- WP Elementor Pro causing crtical failure on website
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Wrong block appender button showing
- Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table
- plugin doesn’t retrieve data from database
- Display Any Field fromAdmin Panel in Frontend via Shortcode?