How To Use Contact Form 7 To Get WordPress Post Submissions (Posts, Pages, & CPTs)

Do you want to build a Contact Form 7 Post Creation Form? Do you want to use Contact Form 7 to design a frontend post submission form? Would you like to make CPT (custom post type) posts using Contact Form 7?

In a frontend post creation form, your site visitors can submit a post on the WordPress frontend without having to access the dashboard or without having to login to the site.

So when a user submits a form entry a new post or page is automatically created.

In this post, we’ll go over how you can create a post submission form using Contact Form 7 and receive user-submitted posts and content from the WordPress frontend.

Featured Image Attribution: Blog icons created by Freepik – Flaticon

How to Create a Contact Form 7 Post Submission Form?

Contact Form 7 by itself does not have the capability to create posts and in order to add post creation capabilities to Contact Form 7 you have to use a Contact Form 7 Post Creation extension.

Tablesome is a Contact Form 7 automation plugin and you can quickly create a CF7 post form and using Tablesome map all the form fields to the post fields.

Tablesome allows you to create a post submission form and to map the post fields (including custom fields), and add the taxonomies to the posts. It helps you create posts automatically and it follows the WordPress post creation standards.

Not only posts and pages you can also use Tablesome to create CPT (custom post type) posts, using CF7 submissions.

We will cover everything related to post creation using Contact Form 7 (CF7) such as:

  • Contact Form 7 create post
  • Contact Form 7 post submissions
  • Contact Form 7 to custom post type
  • Contact Form 7 to save custom post type
  • Contact Form 7 get post data
  • Contact Form 7 get data after submit

Create a Contact Form 7 form with post fields

Before you move on to this step you have to install and activate the free Contact Form 7 plugin from the WordPress plugin repository.

  • To create a new form, go to Contact → Add New
  • Give this post form a title and then add the necessary post fields
  • Post Title, Post Content, and Post Excerpt, are the post fields available that you can add to the post creation form
  • For the Post Content and Post Excerpt fields you can use the Textarea field
  • If you have a custom field you can also add that to the form
  • After adding all the post fields to the form, click ‘Save’ to publish the form
  • Copy the shortcode of the CF7 form

Add the Post Submission Form to a WordPress page

  • Go to Pages → Add New
  • Give the page with the post submission form an appropriate title
  • Add a Shortcode block to the page and paste the CF7 form shortcode that you just copied
  • Then add any other content that you might want to add to the page and publish it

Setup Post Creation Workflow with Tablesome

To do this you need to have the Tablesome plugin installed and active on your site. You start a free trial and you can download the plugin file here.

  • Go to Tablesome → Create New Table, and give this workflow a title
  • To setup a workflow you have to go to Workflows → Trigger 1 →  CF7 Integration
  • Select the ‘On Form Submit (CF7)’ trigger and select the post submission that you have created
  • Then Action 1 → WordPress Integration → ‘Add Post(WordPress)’ action
  • Now you can select the Post type, Posts, Pages, or any CPTs
  • There will be a  Map Post Field section, where you can map the CF7 form fields to the available post fields
  • Post Title and Post Status are the minimum necessary fields
  • You can select the Post Status to be Draft, Pending Private, Publish, or Trash
  • You can also select the Taxonomies that will be assigned to the post
  • If you have custom fields you can use the Post Meta with the Meta key to match an unlimited number of fields
  • Now that you have mapped all the post fields, you can save the workflow by clicking the ‘Save’ button

When a user submits a post in the frontend form, a post will be created with the status that you have assigned. You can view it in the All Posts page and if it is in the Drafts or Pending status you can review and publish the post.

Post-Author
  • If you are a logged-in user who submits a form, you will be automatically assigned as the Post Author
  • For a non-logged-in user, you have to manually assign a Post Author

Coming Soon in Tablesome:

Post featured image, you can submit a file and save it as a post attachment.

Leave a Comment