20canutos
Member
Posted 1 year ago #
I want create automatically a post with data of Contact Form, for example with data of plugin Contact Form 7.
Can i send data to post-new.php when i create new post? For example http://www.dominio.com/wp-admin/post-new.php?%title%='[title-form]....
Thanks.
http://wordpress.org/extend/plugins/contact-form-7/
David Lluna
Member
Posted 1 year ago #
No need to, Contact Form 7 has a grea API and you can simply add an acction hook to wpcf7_before_send_mail action and use wp_insert_post in your function.
Lluna
Hello All,
Since I need the same functionality, who can provide me some more details? Please add some code.
Thanks in advance.
@mta11, you need it with CF7? Or just post from front end?
I can help with the latter...
http://voodoopress.com/2011/03/how-to-post-from-your-front-end-with-no-plugin/
@Rev.Voodoo, Thanks for the reply.
Which part of your coding do I need.
After CF7 is submitted, an automatic post should be generated with data from CF7. Thanks for help.