You must define the checkbox to store array in order to get all the selected values. Change your input name from “data-ids” to “data-ids[]”.
<input name="data_ids[]" value="<?php echo get_the_ID(); ?>" <?= isset($results[get_the_ID()]->data_id) == get_the_ID() ? 'checked' : '' ?> type="checkbox" />
Related Posts:
- Simple form that saves to database
- Retrieving a Value from a wp-database
- WP plugins for building a database?
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- Storing Form data in a different database
- Include plugin form in the home page
- Create user assessment and use results in sql query
- Creating fields in the database
- Allow users to enter and edit data in one-to-many configuration
- Form with response button after on table after submission
- How do I show data from gravity forms in my template? [closed]
- How to delete all records from or empty a custom database table?
- How to make sense of the active_plugins option_value to enable and disable certain plugins from the database?
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Updating WordPress – the best approach (updating wp core, plugins and db)
- How can a Firebase user registration and login be integrated into a WordPress site?
- Bad Request (Invalid Hostname) on working server, database problem
- Plugin Not Working, But Only On GoDaddy Hosted site
- shortcode doesn’t work
- how to show database content in wordpress post
- What is the easiest way to implement cascading database upgrade for my plugin?
- Ajax with jQuery UI dialog not working
- Remove obsolete plugins artifacts from database tables
- Is the wordpress user-model changed in wpmu?
- What kind of data is that?
- Cannot login to ADMIN even after changing password in phpmyadmin
- Where to hook my plugin’s action
- Embed a Google Sheet as you view it in a separate tab?
- Building an email signup form. Where should the information be saved in the DB?
- Custom form action to handle data inside a plugin
- wp_create_nonce function doesn’t work inside a plugin?
- Prevent duplicate records in plugin table
- Submit page limited in time to upload image
- Ajax fail and get 504 error
- Automatic switch to backup database on fail
- Trying to fix form resubmition with PRG (Getting error: Cannot modify header information – headers already sent by)
- Create a table with wordpress plugin boilerplate
- Why this function not working for install database on plugin activation
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Can I create a table on my DB without creating a plugin?
- WordPress : Explain Plugins & Theme string value in database
- Plugins in WP_Options but not Active
- Is there a way to embed a Google Docs form in a page without using plugins?
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to pass the API key to the client from the database? [closed]
- Submit Form data to another page via Ajax (WordPress Way)
- dbDelta not adding additional columns in plugin database update
- Updating options into the wp database performance
- Ajax save data to database on document ready, no data being saved
- How to edit a published post?
- Plugin has added weird data in wp_options, set to autoload
- Creating a form and displaying entry data as a table
- External wpdb connections in different plugins on single page
- Custom form not showing in correct place on page
- WordPress plugin: efficient way to store large data
- Call another page in forms
- How to Use the Filter “sidebar_login_widget_form_args”
- Contact Form 7 Plugin emails not being received by some accounts
- Is this plugin safe to run?
- Integrating Custom Database with WordPress
- Getting URL GET parameter with Code snippets and storing it in database?
- User loggedin as Subscriber form not sending
- Same Plugin tables between wordpress installations
- create pages automatically and dynamically in wordPress
- How to get data from a form on a wordpress site?
- General Term for this form Field
- add_action(‘the_content’, ‘my_plugin_content’) is null
- WordPress database problem wp_posts, primary key
- How to allow URL with filename & extension in wordpress?
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- Remove special characters from filenames
- How to send custom mail when a user complete a specific form
- PHP message: WordPress database error Deadlock found when trying to get lock
- Pause form submissions while upgrading plugins
- using wordpress login details for other website / application / forum?
- How to hide the form after successful php execution
- how to create database to use it in wordpress website?
- how can i get records from wp_postmeta table using particular meta_key in database?
- How to create a custom page for unrelated database?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- User content database [closed]
- How can i see/log all requests coming from a registration form (not from the UI)?
- Write mysql credentials in plugin
- Form submit from wordpress plugin
- Is saving multiple options or saving multiple items in one option better?
- How do I convince this button to do something when it is clicked?
- Linking Plugin Files to WP
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- How to find an option in the database?
- Carrying information from button click into form [closed]
- Is there a plugin that will override the “Error establishing a database connection” message? [closed]
- Get the url of attachments from the post?
- County Finder form/plugin?
- Create New Admin Menu Section – Like how custom post type works, in a way
- Shortcode returning specific content of a post
- get_option returning a different value from what’s saved
- How can I delete the options from DB when the plugin is deleted?
- Does anyone recognize these table names?
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]
- Edit a page/post DB data?