There is a typo:
Use below statement under save_appointment
function
//indexes are case sensitive, note the capital 'D'
$aptDate = wp_strip_all_tags($_POST["aptDate"]);
instead of
$aptDate = wp_strip_all_tags($_POST["aptdate"]);
Related Posts:
- Submitting custom post from frontend,jQuery ajax, and custom validation – can’t find proper place to insert wp_insert_post()
- Debug whats going on inside a function called from AJAX
- Getting the URL of the parent page
- Custom post type – use ajax to display sub pages
- Load Next Posts With AJAX not working with custom post type
- WordPress notification if new post published
- passing values from functions.php to template
- Display custom-post type based on the Title matching the current selected value
- How can I create a button that when clicked populates a div with a list of foods that are checked as a certain type of ACF?
- Attend event form with ajax
- Show ajax form resuslts in page
- Collect custom post in a calendar
- Display users uploaded files as posts
- Form isn’t inserting data into database with ajax plugin
- Post form as custom post
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- AJAX load more for different custom post type loops
- Ajax loaded form replaces form action with Ajax url
- Ajax Custom Post Filter is not filtering
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- JS innerhtml changing style when using AJAX
- Form action/link to render a plugin in WordPress front-end
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Load Custom_post_type categories post with ajax
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- Frontend Post with JQuery AJAX to Php Issue
- Dynamic Custom Fields
- A form that can save/edit after first input
- Show success or error messages in Ajax response to WordPress custom registration form
- How to make front end form only accept certain values
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Using POST method in meta box, no results
- Pagination with custom query, custom search form, single and pages, ajax and no plugins
- Form action doesn’t work if slug isn’t same as custom post title
- Retrieve custom post types by custom taxonomies with WP_Query
- WordPress admin-ajax.php 400 bad request
- $post not working working in AJAX plugin with custom post type
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- Ajax contact form return 0
- Load Next WordPress Posts With AJAX?
- Dynamically output a class to an anchor tag depending on what tag is chosen
- Why won’t this jQuery code work?
- Custom post type’s extra fields – how to handle?
- 404 Error on form submission within custom post type
- Custom Post Type Slick Slider “$ is not a function”
- show custom value from frontend form in a post (custom post type)
- Getting 400 Bad Request on AJAX Call
- Ajax form submit not working, returns 0
- admin-ajax.php GET custom-post titles
- Post will not load via ajax
- Select2 AJAX and WP Query Returns ALL and does not filter
- ajax response not recieving
- Getting a GET error in console – 404 not found for wp-json
- filter by custom taxonomy using ajax
- Output multi-steps form results in same page
- How to Query in WordPress which shows Alphabetic Posts?
- Direct form to a custom page template
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Revert to previous dropdown options after change
- Creating a Tabbed Widget
- Multiple wp_editor instances in custom post type using Ajax
- How to selected value default in option list?
- How can I implement jQuery plugin correctly with my CPT?
- Masonry Append WordPress posts with singleMode
- Displaying information from custom field on custom post type
- I can’t connect my custom jquery to wp admin
- Change Post Meta via AJAX from the posts list table
- Making a form for user to add new custom post with custom taxonomies and custom fields
- Using AJAX to run SQL statement and populate dropdown
- Converting a working AJAX form to work with WordPress
- Weird issue where form field loses focus to previous form field even with JS disabled
- Submit Custom Postypes from frontend
- jQuery UI & Admin (Calendar)
- jQuery forms & updating info
- WordPress custom post type numeric pagination with ajax
- How to display contact form 7 form in vanilla js without jquery in frontend
- Change Dropdown jQuery to show/hide but with default place holder that shows all
- Ajax Post Filter | Split Taxonomy Into minPrice & maxPrice
- WP_Insert_Post creating duplicate posts when logged in
- How to submit custom post type front end form when a user buy specific product
- How to filter custom post type by multiple Taxonomies
- How to upload two input files [closed]
- Not saving custom taxonomy while using ajax
- Search for custom field input of a custom post type in ajax live search
- Change dynamically the dropdown list value
- Filtering posts based on three taxonomies
- WordPress next post by ajax call on button click
- Trying to list years (for a filter) but not all years display
- Opening Modal popup on Ajax form submission
- Use a template for a specific url slug without creating a page
- Why it doesn’t create a custom post type after form submitting
- Disable button after one click per user per post
- ‘Simple’ Reservation System
- WordPress retrieving $post based on random key in $_POST
- Change the term based on the value of a $variable using wp_update_post in submitting a form
- WordPress custom post type post item data – show/fetch only on click with Javascript dynamically?
- Guided post type create based on category tree
- How to display custom post type pagination buttons when processing AJAX request
- how to display new private message to users?