If you are using Gravity Forms you can get this plugin that works quite effectively.
https://ww.wp.xz.cn/plugins/gravity-forms-custom-post-types/
@bob Cristello
I am not using any plugins to create my form.
I created it by my own and did ajax validation too. I just need to insert the form details in a custom post rather than in the mysql table. While Clicking the post from the site(backend), I need to show the details which are inserted through form. Any help will be helpful to me.
Thanks Sallu
You are going to have to create your own code to accomplish that. Everything you need to know about inserting posts is here:
https://developer.ww.wp.xz.cn/reference/functions/wp_insert_post/
I have make use of it. it is not create any new custom post nor inserted the form values in the custom post which i created. Instead it added the form data’s in “wp_posts”.
This is the code which i used,
$title= $_POST['your_name'];
$decription=$_POST['e_mail'];
$my_post = array(
'post_title' => wp_strip_all_tags( $title ),
'post_content' => $decription,
'post_status' => 'publish',
'post type' => 'EmpResume'
//'post_author' => 1,
//'post_category' => array( 8,39 )
);
// Insert the post into the database
wp_insert_post( $my_post );
Any other idea?
Thanks Sallu.
Hi Guys,
I am not getting enough information on creating custom post type while submitting form so moved to create “custom admin page” to view my form data from mysql db. I viewed the employee names in wp site. Now trying to view the page with detail when clicked the employee name.
If I have finished it I’ll Post my answer .
Thanks Sallu.
Try asking these kinds of questions in the Hacks forum: https://ww.wp.xz.cn/support/forum/hacks