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
- Most efficient way to add javascript file to specific post and/or pages?
- Display all values of custom a field created with ACF on a page
- If Custom Field is empty don’t display div
- Create meta boxes that don’t show in custom fields
- How to Display Image Meta underneath EVERY image in EVERY post
- Passing the custom field values in the wp_get_current_user array function
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- Create Multiple File Upload Metabox in WordPress
- auto-populating custom nav with all items from custom post type
- Automatic Shortcode Creation with Custom Fields [closed]
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- Limit checklist by the current user
- How to convert select to HTML with PHP tags inside of it [closed]
- Show meta box only for default page template
- How to check if a PHP string is different than meta field?
- Querying Database with wpdb
- Move Title and the Content WYSIWYG editor position
- Only show image from custom field when present
- Hide Heading if ACF Field is empty
- Custom meta box values are not getting saved for my custom post type
- WP_Query: getting posts where custom field exists
- Creating an image from a custom field
- User Meta Value not echoing despite Var_Dump Showing correct string
- WP All Import / Update stock quantity from multiple XML files
- Show metabox only for homepage
- Concatenate Custom Field Value & HTML Value
- Warning: call_user_func() expects parameter 1 to be a valid callback, function
- `update_post_meta` not working anymore
- Any way to update_post_meta with html content? It gets stripped and becomes empty
- Filter unique custom field value based on custom taxonomy category or other custom field
- Can ‘Custom Field’ data be inserted into this Short Code?
- Query pulling a single post per month
- Add custom fields from different posts
- Adding a custom meta field with default NULL value which is not selectable
- Products listing check if meta checkbox is checked
- Display metabox galleries on specific page template in admin editor
- Hide a div if the fiels is empty
- Inserting a class on before_widget if checkbox is checked
- What is the correct way to search 3 custom fields only in WordPress?
- wp_get_nav_menu_items() with ACF
- How do I get the value of a current user’s custom field?
- Get meta values from parent post and save in child post
- Creating a “Related Meta” type field?
- Remove item from post_meta array via AJAX
- Display Content Based on Custom Field Value
- Inline Styling a div from a Custom Metabox
- When post is updated, custom metadata in text area field is overwritten
- Save data of select list after clicking save
- Postmeta not saving
- Custom field in title
- How can I put a custom field as the link of a button shortcode?
- Creating a function that sanitizes the custom metabox excerpt
- How can I create a menu items from meta box based on users input
- When editing a post with a custom meta box the values aren’t displaying correctly
- I want Page titles and excerpts to show up on home.php in certain order
- Search custom post type posts only by meta fields?
- How to pass value to add_filter wpcf7_form_tag from another function?