WPForms
98The best WordPress contact form plugin. Drag & Drop form builder to create beautiful contact forms, paymen...
Create a WP Post from a Form Submission.
Form to Post is a WordPress plugin that allows you to create a post from a form submission. You can use Contact Form 7, Fast Secure Contact Form, or a custom HTML form to set up your fields, ensuring they match the required parameters for creating a post. The plugin takes the field name-value pairs and uses them to call the wp_insert_post function, creating a new post based on the form input.
This plugin is suitable for users who want to collect form submissions and convert them directly into WordPress posts. However, it is limited to text inputs only and does not include error handling, which may be a concern for some users.
Best for: This plugin is suited for users looking to convert form submissions into WordPress posts easily.
What it does well
Where it falls short
Form to Post provides a straightforward way to create posts from forms, but its limitations and potential spam issues should be considered.
Michael Simpson's own description of Form to Post, lightly tidied.
Create a WP Post from a Form Submission. Create a form using Contact Form 7, Fast Secure Contact Form, or just a plain
form, be sure to name your fields correctly, then the form submission will be sent to a post.
Very limited.
Essentially you can think of this as a form wrapper around the wp_insert_post function.
The field name-value pairs of the form become inputs to a wp_insert_post call.
WARNING: using this plugin provides spammers the opportunity to send you automated spam form submissions.
How To
Minimally, your form must have the following two fields. A post will not be created if one or both is missing.
Special Fields
As hidden field: If you want to make all the posts be of the same category, create a “post_category_name” hidden field
whose value is the category name. If using CF7, it does not provide
hidden fields. But you can add them by adding the plugin Contact Form 7 Modules.
As checkboxes: to make the category choosable by the user via a checkbox,
create a checkbox form field named “post_category_name” with each having a value that is a category name.
(If writing your own HTML directly, use “post_category_name[]”, see “Plain Form Example” below).
CF7 Form Definition Example:
Post Title [text* post_title] <br/>
Post Content (required) <br/>
[textarea* post_content] <br/>
Categories (required) <br/>
[checkbox* post_category_name "Uncategorized" "Cat1" "Cat2" "Cat3"] <br/>
[submit "Post"] <br/>
Aside: if you are familiar with wp_insert_post, then you will know that there is a “post_category” parameter but no
“post_category_name”. The problem with “post_category” is it requires category ids (the numbers). But what you really
want in a form are the category names. So this plug allows for “post_category_name” which can be one or more
category names. It looks up the associated category numbers and sets “post_category” for wp_insert_post.
But you can use “post_category” instead if you like. But do not use both in the same form.
Other plugins for building forms.
The best WordPress contact form plugin. Drag & Drop form builder to create beautiful contact forms, paymen...
The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...
Get a fast contact form plugin. Create advanced forms using drag and drop form builder with all smart features...
Best WordPress form builder plugin. Create contact forms, payment forms & order forms with 1000+ integrati...
Save and manage Contact Form 7 messages. Never lose important data. It is a lightweight contact form 7 databas...
Elementor forms builder to create WordPress forms like contact form, booking form, feedback form, survey form,...