Create single posts from feedback contact form
-
Hi!
I was wondering if there is a somewhat simple way to create posts from the contact form?Like, using
wp_insert_postor something and copy the field data and inserting them in a draft post (standard post, not CPT).For example:
Somebody fills in a feedback contact form on my site; example.com/contact and asks a question. I’d like to reply to his question by creating a blog post so everybody can see it.
Let’s say the fields (or labels) are:
Name
Email
What’s your question?In the created blog post I’d like the post title to be something like:
{Name} asked a question.The post content should contain the asked question and also be prepared for my answer further below in the post.
Is this possible in some way?
I think it should be… Can I grab the feedback by custom fields?Sorry for my very simple explanation for this. I’m a complete N00b when it comes to php and coding.
Please help.
The topic ‘Create single posts from feedback contact form’ is closed to new replies.