Hi,
You mean to see preview of the submitted informations in another page ?
not exactly, I want to generate a new page with the information I want to show automatically after the user submit the information. The page format can be set like the email part.
you mean create a new wordpress page, and the content would be email message, right ?
yes, is there a way to realize that, thanks!
yes, i will find and share you the code.
You can try this code
function action_wpcf7_create_page( $contact_form )
{
$new_page = array(
'post_title' => 'Contact-page-' . date('Y-m-d H:i:s'),
'post_content' => sanitize_text_field($_POST["your-message"]),
'post_status' => 'publish',
'post_type' => 'page',
);
wp_insert_post( $new_page );
}
add_action( 'wpcf7_before_send_mail', 'action_wpcf7_create_page');
Thanks, I will try this and let you know the result when I am done! Thank you very much!!!
yeah! It works well!!!! Thanks a lot!!!! I will mark the topic as resolved:)