For multiple selections to work the name attribute of your form has to be an array, you can specify that like this: name="fruits[]" – or as complete line:
<input type="checkbox" name="fruits" id="fruits[]" value="apple" />
This is well documented, for example:
Related Posts:
- Front end register with custom fields
- Problem uploading different files as custom fields with front end post form
- How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]
- Up/Down voting system for WordPress
- limit amount of photos uploaded per cpt post
- Save attachment custom fields on front end
- Front-end update_post_meta with ajax
- Datepicker not supporting timepicker
- Front-end editing with custom fields?
- Excluding Specific Fields from Profile Builder Registration Form
- Custom field as Slug
- how to make nsfw post with thumbanil
- ACF form edit front end post title does not change permalink
- How to add fields in custom registration form, validate it and aave to db? [closed]
- WordPress Settings API Repeatable fields
- frontend submit post jQuery clone row won’t save
- Advanced Custom Fields and Post Meta Fields Relation
- Front-End User Profile
- How to update user profile custom fields
- Woocommerce frontend edit custom fields
- Modify custom field from front end
- Adding extra fields to front end signup form
- Changing form action based on selected value
- Let any visitors delete a post if they know Id nr & password?
- How do I display a custom field in an existing form on the front end?
- How do I update custom field post meta in frontend post template?
- Contact Form 7 List Building
- what would be a good example of a php dynamic code to display contents of textarea?
- Login_form add to top of form rather then bottom
- Meta Box Data added to header redirect
- Form fields based on custom fields
- How to allow user to add to, but not edit, a post?
- Bypassing a Form Options
- Populate Elementor Form based on first selection
- Custom post meta field effect on the performance on the post
- Having different sidebar content for MANY pages?
- Add custom objects/entities to WordPress
- How can I fetch CSS from JSON WP REST API response
- How to set a default meta value for custom field
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- Plugins won’t recognize my plugin’s hidden custom fields
- Store JSON in a custom field
- Calling Specific Pages with wp query Part II
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- If value present, order posts by two consecutive custom fields
- Copying Custom Meta Values from existing post to a duplicate post
- Save page data to an xml file
- Create Posts using Import>RSS/WXR/XML and pass values to Custom Fields
- Best way to add custom / magic / flutter fields into RSS feed
- Importing users to Buddypress with custom fields
- How to save a ToggleControl value in a meta field?
- How to get multiple checkboxes in one meta field
- Adding Custom Fields to Search
- How to get customfield value by woocommerce product ID
- How do I get the url slug inside the dashboard for a custom post type?
- How do I use Ajax to build a dropdown of custom fields based on a post selected in previous dropdown?
- Register rest field for specific user
- Custom Field Suite A little problem
- Audio player shortcode not showing up when using variable
- Save the_content into custom field
- How make a custom search on backend in WordPress without plugin?
- get_posts that haven’t been assigned a specific custom field
- how to upload a image from frontend with wp_insert_post and also update_post_meta?
- Insert a custom field into a shortcode and use it in post(s)
- Sort alphabetically by custom field
- Meta query with multiple custom fields for archives page ordering problem
- filter custom field values $min $max
- Custom Fields – How to create a list from multi-line entries of a single value
- Auto embeding Vimeo/Youtube in custom fields (tinyMCE editor)
- How do I use “if field exists” with $curauth?
- custom field (video/audio url) and embed functionality
- Read more to open external link
- Custom metabox not displaying multiselect data in edit mode
- How to validate select field in post meta?
- How to redirect to home page according to a specific page custom fields value and user name
- How to use pre_get_posts to alter posts_per_page of category pages, where ‘posts_per_page’ will be dynamic
- Displaying pages with a specific custom meta
- How to print the Custom fields values [closed]
- How to validation for sanitize_URL?
- How can I output the custom fields wrapping with HTML
- Is it possible to compare the current time with a custom “start” and “end date
- Display metabox title for custom fields with values
- wpdb function insert doesn’t work
- User Filter Options on Archive Page
- How to fix a conflict cause by my theme with Woocommerce and/or Gravity Forms?
- Search one custom field?
- Can’t save meta field value if the title not set
- Get a different meta value with ajax when different elements are clicked
- Why is wp_list_pages altering $post->ID of the page?
- How do you turn a custom field’s value into a permalink for that post?
- How to keep sharing stats after creating 301 redirects?
- Using Hooks. Thematic
- Insert wp gallery shortcode into custom textarea
- Display posts where date field matches current month?
- Update field name without losing the value
- Add values of post meta fields?
- Create taxonomy terms from custom field values
- Save Custom Meta Value on Media Upload
- Saving multiple custom meta box fields
- I have design Tab in a Bootstrap 5 in row. And repeat row in ACF. only 1st row tab data is show. other row data off tabcontent appearing display:none