In this post, we’ll walk you through a solution that will enable users to submit blog articles, customer testimonials, or any WordPress post content without WordPress login or complicated coding.
The whole process could be split into 3 phases :
Capturing post content
Sending the content into WordPress
Review the content and Publishing.
Let’s see how we can create a custom form for post-submission on SurveySparrow.
Once you log in, you will land on your account dashboard where you can find the
+ New Survey Buttonat the top right side corner. Click on the button to create a survey of your choice.
Select Classic Survey as your survey choice and you will be taken to the survey builder to create your form.
Now add necessary questions such as Post title, Post content, Post Author and Category. We could also create a question to capture the author’s email address to make further communication easier.
To receive data from SurveySparrow to WordPress without logging in, we need to create a webhook. We will create the webhooks using a plugin named - WP Webhooks
Visit your plugins section on the dashboard and search WP Webhooks as shown below:
Once done, you can activate and access the Webhook settings under WordPress Settings Menu inside the dashboard.
You can access the Webhook url by clicking the Receive Data link on top
This is where it gets more interesting. You can find all the actions that you can perform using the webhooks by clicking the Webhooks Actions.
We are currently interested in creating a post so we will select that particular action and browse through the available options.
Please note that the create_post action is crucial here; you need to add this action to your webhook URL for receiving the data successfully.
You need to make a list of fields/data you require to capture and send to WordPress. We will collect the following data:
1. Post_title 2. Post_content 3. Post_author 4. Post_category
Once the questions are created navigate to the Integrate tab and choose webhooks and create new webhooks as shown below.
Save the webhook. Now, whenever the survey is submitted the responses are captured and it will create a draft post in your WordPress account.
Now you can navigate to the post section of your WordPress account, review the draft post and publish it.
Thus with SurveySparrow, you can easily create a form/survey to accept guest posts. And because you can map the form fields to the fields on your blog, you can publish user-generated content on the front quickly and easily
Would love to hear your feedback on this. Share your thoughts as comments / posts.