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
- jQuery AJAX submit form
- jQuery’s .on() method combined with the submit event
- jQuery and AJAX Not working with Select Form Element
- jQuery UI in Admin (Best Practice?)
- How to filter post data with AJAX on page?
- How to link WordPress heartbeat to ajax form
- How to save contact form 7 data in Custom Post Types (CPT) [closed]
- Ajax filter with custom taxonomies
- Conditional two level dropdown filter for custom post type
- Dynamic dropdown custom post list based on dropdown selection
- Using AJAX to return search form results
- How to embed form data within the ‘Add new post’
- Using shortcodes to parse POST request (containing the data from a front-end form)
- How to use wp_mail in CPT page
- Registration e-mail check with AJAX
- Custom query form submission pagination
- Timepicker-addon doesn’t show – Datepicker works fine?
- Query Custom Post Types & category_name?
- Filter custom post type archive page with custom taxonomies (categories) with AJAX
- Ajax form filter post by custom fields [closed]
- jQuery Plugin to use WordPress functions in AJAX request
- How to load custom post archives sub-pages with ajax?
- different template for first and second level custom post page
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Accept AJAX call with serialized form data
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- Ajax Check Post Status
- Filtering WP_Query Dynamically on the Front-End
- How to retain $_POST data when submitting form to custom page
- Why get_posts() not returning only selected category posts from Custom Post Type?
- Form isn’t inserting data into database with ajax plugin
- Post form as custom post
- 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
- Dynamic Custom Fields
- How to make front end form only accept certain values
- WordPress admin-ajax.php 400 bad request
- Ajax contact form return 0
- Why won’t this jQuery code work?
- Custom Post Type Slick Slider “$ is not a function”
- show custom value from frontend form in a post (custom post type)
- admin-ajax.php GET custom-post titles
- Post will not load via ajax
- ajax response not recieving
- Getting a GET error in console – 404 not found for wp-json
- Output multi-steps form results in same page
- How to Query in WordPress which shows Alphabetic Posts?
- Creating a Tabbed Widget
- Multiple wp_editor instances in custom post type using Ajax
- Masonry Append WordPress posts with singleMode
- Displaying information from custom field on custom post type
- Converting a working AJAX form to work with WordPress
- jQuery UI & Admin (Calendar)
- jQuery forms & updating info
- WordPress custom post type numeric pagination with ajax
- How to submit custom post type front end form when a user buy specific product
- Not saving custom taxonomy while using ajax
- Why it doesn’t create a custom post type after form submitting
- Disable button after one click per user per post
- 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?
- Dropwdown: Get taxonomy terms from posts that share preselected terms from 3 other taxonomies
- Advanced search form with multiple custom fields
- Is there a best practice, or typical way to do AJAX updating for data on a custom admin screen or post.php?
- custom search form for custom post
- Filterable portfolio in WordPress using jQuery isotope
- Fetch loop of custom post types with AJAX
- Calling in Post Content via AJAX
- Getting Custom post category from Form
- Submitting my form to the database and then redirecting to payment site
- $_POST empty in using new php file added to theme
- jQuery tab_title already in use
- Front end page submission form does not attach custom post type
- How to load more custom type posts through AJAX & LOAD MORE POSTS button
- Toggle a metabox based on a selection
- Updating custom post meta with ajax
- Custom filtering on month value only of an entire date field
- Submiting custom form give error 404
- From form submission values – dynamically update CPT “has_archive” slug and custom taxonomy “rewrite” slug value
- Custom plugin contact form connecting to mailchimp API
- Internal Server Error when echoing an OBJECT from wp ajax action function in functions.php to JS file
- Load posts via AJAX without draft status
- How to add categories to a custom post type using wp_insert_post($new_post);