For your my_ajax_admin_add_track() function, grab the form field data from the $_POST array, populate the required data in an array to call wp_insert_post(), then call wp_insert_post() passing it the post data. It should return the new post ID number if successful.
Related Posts:
- Remove rows in the manage post/page view
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- How to add custom columns to Custom Post Type admin screen
- Is it OK to move admin menu items?
- Prevent reload confirmation after AJAX save
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How to add post_author column to custom post type
- WordPress User Roles, Custom Post Types, and Admin views
- How to make post sticky in the admin page?
- How to customize admin posts based on the user who is logged in
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Storing posts from query and accessing later via AJAX call
- Selecting a post in Dashboard
- Custom admin post.php page
- JS innerhtml changing style when using AJAX
- No Permission to add new Page, Post or CPT with Admin role
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Admin Column does not populate with data
- Load Next Posts With AJAX not working with custom post type
- $post not working working in AJAX plugin with custom post type
- Load Next WordPress Posts With AJAX?
- WordPress notification if new post published
- How do I edit the WordPress post.php file?
- Multiple wp_editor instances in custom post type using Ajax
- Change Post Meta via AJAX from the posts list table
- Admin slow on Postlist (over 30k Posts in Database)
- How can I put content before my custom post type default pages?
- list articles in admin showing nested categories or slugs?
- Publishing failed. The response is not a valid JSON response
- Limiting the Number of User Posts to Their Own Posts
- WordPress Author Posts Review After Every Change In The Same WordPress Post
- Multiple custom post types under one admin menu
- Linking Two Post Types
- How can I change the admin search posts fields?
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- WordPress Custom Post Type Admin Page really slow
- using slug instead of ID in admin edit post url
- Filter by custom Field for Custom post type Admin Listing
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Post slug changed using code doesn’t reflect on editor when post is published
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Problem excluding category from get_next_post
- Remove date and category filters when editing custom post types
- Filters post in admin with dropdown select, custom post type
- Admin List Dynamic Heading
- Quickest way to get last or oldest post date – WP Query
- How to use custom fields to enable sticky posts on custom post types?
- How to remove ‘create new post’ entry for a custom post type?
- Changing ‘view’ link for custom post type on list post screen?
- Show Two custom Post type and their posts on category page
- Custom post type and body_class: Remove “blog” class
- Display custom post data in sidebar w/ dropdown
- How to get the post type from a category id?
- Getting posts under the custom post type ui category
- Turn on and off custom post type from admin?
- I would like to have different styles for my posts based on the content of each post
- AJAX load more for different custom post type loops
- Possibilities for the edit.php admin panel? [closed]
- Portfolio Page for Classic Posts
- How can i create an custom post template for an specific post category? [closed]
- Modify previous and next post links to current Authors Other posts
- Add a ‘guide’ image to custom post type admin page
- Display an authors post on a single page only when they are logged in
- Linking to Post Types from wp-admin
- Get_the_terms restrict output
- Change link for “add new” buttons on custom post type
- How to add new post using a form to categories when categories are using as menu
- Custom wordpress loop
- Different post title, keywords and description
- How do I update_post_meta() or add_post_meta() with an AJAX call
- Custom post type filter is being applied to all of my posts
- Get_post_custom not fetching value from array wordpress
- Display Parent-Child Posts in specific order by comparing IDs in array
- What is the best way to structure posts for the same event happening in different years?
- How to display custom field in product description?
- How to display posts with plugin (advanced custom fields) field groups?
- WordPress – display relationship between blog posts and custom posts
- Custom page with no headers, footers and its own CSS, Javascript
- SEARCH QUERIES – REVERSE OUTPUT
- Is there a way to create a sidebar of bullets
- I cannot display custom posts in custom taxonomy
- How to redirect from wp-admin/edit.php to a frontend page for specific custom post type?
- How to get the posts that my following users are liked?
- How to insert post 6 times after user register like ask.fm
- Custom post meta box as a sub form
- Create an administation subpage containing posts in a certain category
- Creating custom post type relationships
- Add filter button to custom post type in admin area
- Collect custom post in a calendar
- How To Loop Through list with Custom Post Types
- Adding Information To All Posts Screen
- erase post excerpt limitation [×]
- Collection of fields in a single post
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj