I think it has nothing to do with wordpress.
Shouldn’t this question be on stackoverflow?
HTML:
name="quest_title[]"
name="quest_desc[]"
PHP:
foreach($_POST['quest_title'] as $key => $title)
{
$desc = $_POST['quest_desc'][$key];
//Here do whathever you want with this $title and $desc.
}
Solution: use empty brackets at the END of the name tag.
Related Posts:
- If custom field doesn’t exist, or exists and it’s true show title?
- How to update custom fields using the wp_insert_post() function?
- How to display multiple Post meta_key/meta_values by SQL query
- How to use multiple query with same meta key
- How can update custom meta for all posts
- Use ajax to update_post_meta
- how to increase custom post value by one most efficiently?
- How can I create a list of page titles from custom meta values?
- Store multiple custom field as post meta per post(css, js, html, 2 link) [closed]
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Need Help Fixing My Iframes [closed]
- Trying to retrieve post meta
- Is it possible to retrieve all posts with a certain value for metadata?
- Saving zero in meta box
- Non-Closing PHP Query in WordPress Loop
- Find a way to retrive data updated through metabox plugin to web page
- Why does this update_post_meta function not delete the custom field itself?
- how to get serialized post meta
- WordPress loop by meta key that is an array? and how loop multiple arrays
- Order a WP_Query by meta value where the value is an array
- Add a custom class to the body tag using custom fields
- Define category ID using get_post_meta
- Unable to Call More than One Meta Box Output
- Hide a div when a custom field is empty
- Post meta select input, if statement
- Display background color or image with custom meta box?
- Meta boxes only displayed when editing normal (default wp post_type) posts
- WordPress stripping out custom field tags
- Order category posts by last word of custom field
- Add a “custom field” to a category that can be retrieved when viewing the category page with get_post_meta
- How to update custom fields when post is published?
- Unable to update the meta boxes with multiple fields
- WP post meta – for loop inside for loop
- When working with a post, almost all wp_postmeta are deleted
- Updating Lat and Lng of posts automatically gives sporadic results
- meta field for numerous links
- Custom fields changes the formatting of metabox input
- WordPress AJAX load post metadata in modal
- custom field meta-box with dropdown/autocomplete
- Where can I find the code for the menu page meta boxes?
- PHP Puzzle: Unique Styles with PHP loop
- Display custom meta box in my template file
- Metadata on the WP_Post object
- WordPress – Display array data of a child
- Assign / update custom field value for all posts (How can I assign only to posts without custom field value?)
- wordpress allow user to edit user profile with custom fields
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Sort custom meta column by other meta value
- A better way to add a meta box to custom post types
- Creating user status mode in WordPress
- get_post_meta not working on publishing
- Need help with Google drive API [closed]
- Remove metabox from WordPress menu editor page?
- Firing schema via code in functions.php doesn’t work
- MetaBox body is not showing (the callback function)
- Adding number to date not working [closed]
- How can I add extra word in permalink when someone click download button?
- Saving and Restoring a Canvas on A Individual User Basis
- Seach custom post type posts only by meta fields?
- How to use thumbnail size of image if I’m only using src to get image
- 3 Slashes appear after Apostrophe in custom fields after updating product-site
- how to retrieve a value if a checkbox is checked
- Trouble checking if custom woocommerce checkout field is empty or not
- Two queries for a WP_User_Query search work perfectly apart, but not together
- Button inside Custom Meta Box triggering the Update Button
- Why is my Custom Meta Box Field Inputs NOT saving?
- Archive post by meta value + 24hours
- auto-populating custom nav with all items from custom post type
- Add / Update Custom Fields After Select Pictures in Media Window
- WordPress update_post_meta updating with empty meta_value field [closed]
- conditional logic for front-end custom field edits
- get_posts in meta box dropdown not showing latest posts
- Automatic Shortcode Creation with Custom Fields [closed]
- Custom field values to taxonomy terms
- can i fetch a custom metabox data in another page or post type?
- WordPress from url get external source title
- How can you include custom post meta in search without calling each key?
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- Display Custom Meta Box Field Only If Value is Present
- How to add specific meta tags to head of cart and checkout pages in woocommerce?
- Add additional field to custom post_type
- Limit checklist by the current user
- Custom Field IF/ELSE PHP
- Which PHP page is the Default Posts Page
- How to convert select to HTML with PHP tags inside of it [closed]
- Sanitizing text fields in array
- How to combine 2 php functions into one function with a custom field
- Remove the last X characters of a custom field value
- Advanced Custom Fields – display label and value only if value entered
- Get post id within comments loop
- shortcode in a custom metabox
- Show meta box only for default page template
- Illegal string offset in PHP function
- Why are the details of my todo not saving?
- How to I retrieve the ID from the Posts page?
- How to check if a PHP string is different than meta field?
- Can’t save php string to a custom field
- Display custom field on 404 page outside loop
- How to show/hide php table rows based on the content of custom fields
- Run str_replace on title and save the output to a custom field