Forums

Contact Form 7
How to create a post automatically ContactForm data? (5 posts)

  1. 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/

  2. 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

  3. mta11
    Member
    Posted 1 year ago #

    Hello All,
    Since I need the same functionality, who can provide me some more details? Please add some code.
    Thanks in advance.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    @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/

  5. mta11
    Member
    Posted 1 year ago #

    @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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic