WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Michael Simpson v0.10

Form to Post

Create a WP Post from a Form Submission.

Form to Post

The facts

Rating
5★ from 12
Active installs
100+
Price
Free
Last updated
15 Mar 2016
Added
Nov 2011
Requires WP
3.2.1
Tested up to
WP 4.4.34
Downloads
12,943

Our analysis

AI-assisted

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

  • Creates a WordPress post from form submissions
  • Compatible with Contact Form 7 and Fast Secure Contact Form
  • Allows for category assignment through form fields

Where it falls short

  • Only accepts text; no images or videos
  • Lacks error handling
  • May expose your site to spam submissions

Verdict

Form to Post provides a straightforward way to create posts from forms, but its limitations and potential spam issues should be considered.

From the developer

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.

  • Only accepts text, no images, videos, etc.
  • No error handling.

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

  1. Create a form using Contact Form 7 (CF7), Fast Secure Contact Form (FSCF), or create your own form HTML.
  2. Name your fields according to the parameters of the wp_insert_post function.

Minimally, your form must have the following two fields. A post will not be created if one or both is missing.

  • post_title
  • post_content

Special Fields

  • post_category_name can be used to set the category of the post

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.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for building forms.

WPForms

WPForms

98

The best WordPress contact form plugin. Drag &amp; Drop form builder to create beautiful contact forms, paymen...

Free 5M+ installs 4.8★ (14,369)
Akismet Anti-spam: Spam Protection

The best anti-spam protection to block spam comments and spam in a contact form. The most trusted antispam sol...

Free 5M+ installs 4.7★ (1,186)
Fluent Forms

Get a fast contact form plugin. Create advanced forms using drag and drop form builder with all smart features...

Free 700k+ installs 4.8★ (790)
Forminator Forms

Best WordPress form builder plugin. Create contact forms, payment forms &amp; order forms with 1000+ integrati...

Free 600k+ installs 4.8★ (2,117)
Database Addon for Contact Form 7

Save and manage Contact Form 7 messages. Never lose important data. It is a lightweight contact form 7 databas...

Free 600k+ installs 5★ (1,874)
MetForm

MetForm

93

Elementor forms builder to create WordPress forms like contact form, booking form, feedback form, survey form,...

Free 600k+ installs 4.7★ (504)