How to Display WordPress Form Submissions via CPT?
Tags: cpt, customposttypes, wordpress, wordpressform
Published: 2022-01-21 14:29:30

---
title: How to Display WordPress Form Submissions via CPT?
published: true
date: 2022-01-18 07:48:53 UTC
tags: cpt,customposttypes,wordpress,wordpressform
canonical_url: https://lanamiro.medium.com/how-to-display-wordpress-form-submission-with-jetformbuilder-ce7ec1fe1e7d
---

Have you wondered how to showcase form submission from the WordPress form created in the free JetFormBuilder plugin? Then, this tutorial is definitely for you.

I’ll show you how to display form submissions via CPT, using plugins:

- [Show Form Submissions Using Custom Post Types (JetEngine Plugin)](#64a8)
- [Creating CPT with free Pods plugin](#3fe0)

After the user submits [**my contact form**](https://lanamiro.medium.com/how-to-build-free-wordpress-contact-us-form-with-jetformbuilder-step-by-step-bf72ab6f07e2), there are several options to store responses:

![submit contact form](https://cdn-images-1.medium.com/max/1024/1*WgXVHFQ3gkJNfb1d3-JTwg.png)

- send email to my inbox
- send the request to MailChimp
- Insert post

I would like to create a **custom post type** to store my form responses and show form submissions on the front end of my website with the [**Insert/Update Post**](https://jetformbuilder.com/features/insert-update-post/) submit action.

### Show Form Submissions Using Custom Post Types (JetEngine Plugin)

[**JetEngine**](https://crocoblock.com/plugins/jetengine/) is the premium WordPress plugin for dynamic content that will help me create a new **custom post type, “Form Submissions”**. The steps to follow:

- [Create a new CPT](#6254)
- [Create WordPress form with JetFormBuilder](#460e)
- [Set up post submit action](#b919)
- [Testing Time](#55a2)

#### #1 Create a new CPT

After installation and activation of JetEngine WordPress plugin, go to **JetEngine -> Post Types -> Add New** :

![Create a new wordpress CPT](https://cdn-images-1.medium.com/max/1024/1*31eH-S4yQrA-sOHSZUSUTw.png)

As I have several WordPress forms on my website, I need to create a memorable custom post type for my Contact form, let’s call it “ **Contact Us Responses** ”:

![Contact Us Responses custom post type](https://cdn-images-1.medium.com/max/1024/1*eIDJbofUsQx6TmxnC9DHHg.png)

Then, I need to add meta fields according to my form:

![add meta fields according to my form](https://cdn-images-1.medium.com/max/1024/1*nj4ccC6njOeq8PUm0p067Q.png)

You just **copy the labels** from your form fields. For example, the first field is Name, I’ve put Label — Name, and ID — name, chose Field type as text.

_But what if we have another field type?_ For instance, the Radio field:

![](https://cdn-images-1.medium.com/max/545/1*YS7RfLrJxGz0kN618JuqXg.png)

No worries, we need to set the **correct Field type** and **add Field options** (in my case, it’s email, phone, and messenger):

![add Field options to meta field](https://cdn-images-1.medium.com/max/1024/1*6ZsvV9JTst1AV6jyTXobzA.png)

In results, I have **4 meta fields** created in my CPT:

![meta fields in custom post type](https://cdn-images-1.medium.com/max/1024/1*3vJksHpbQvIOSvz1KQYoZA.png)

💡 **_Please note:_** Labels & ID should be the same as in your WordPress form (in other words, the fields must match each other 😅).

Now my CPT is ready to store responses:

![store wordpress form responses in custom post types](https://cdn-images-1.medium.com/max/627/1*7wVn4NUx5_FdwK19Ls1FgA.png)

#### #2 Create WordPress form with JetFormBuilder

After creating CPT for storing your form submissions, feel free to create your WordPress form. I’ll proceed with the Contact me form.

💡[_The tutorial for creating the contact us form with JetFormBuilder is here._](https://lanamiro.medium.com/how-to-build-free-wordpress-contact-us-form-with-jetformbuilder-step-by-step-bf72ab6f07e2)

My form is ready to go:

![free wordpress contact form](https://cdn-images-1.medium.com/max/1024/1*Ct1DxZbPsso463htN9PlXA.png)

#### #3 Set up post submit action

The contact WordPress form is ready to set up post-submit action. Choose the Insert/Update Post and press the edit icon:

![Set up post submit action](https://cdn-images-1.medium.com/max/286/1*SR6nYF-O54vcV3HxaCGHqg.png)

And the edit action window appears. We need to **map our Form with Custom Post Type and Fields**.

So, I’ve set:

- my **Post Type** , as **Contact Us Responses**
- **Post status** as **Pending Review**

**Fields map should be the same as your Post Type meta field** (created before). For example, here are my meta fields created in Contact Us Responses CPT:

![meta fields created in Contact Us Responses CPT](https://cdn-images-1.medium.com/max/1024/1*Wf8HeSNAilXciiCXG_VXwA.png)

**_P.S._** _I simply copied ID and passed in my_ **_edit action window_** _among_ **_Post Meta_** _._

- Name as name
- Email as email
- Phone as phone
- Preferred method of communication as preferred-method-pf-communication
- Message as Post Content (it’s not a meta field, I want it to be shown in my post content section).

![wordpress form post meta](https://cdn-images-1.medium.com/max/1024/1*XTss3dt5ubHkmJwMnGbHIg.png)

And press **Update button**. Now you can publish the form and add it to the page (with Gutenberg block, or via any other [WordPress page builders plugins](https://crocoblock.com/blog/free-premium-wordpress-page-builders/)).

#### #4 Testing Time

Now it’s my favorite time — Testing! I’ve submitted my WordPress contact form:

![test wordpress contact form](https://cdn-images-1.medium.com/max/1024/1*k5ESeFTa0vwK4PC8AY5T9Q.png)

And went to my CPT ( **Contact Us Responses** ), where we could see new submissions:

![wordpress form submissions in cpt](https://cdn-images-1.medium.com/max/892/1*yx6JX-mwexlZk9mfV1Sktg.png)

So, let’s open the post created automatically:

![form replies in custom post type](https://cdn-images-1.medium.com/max/1024/1*x_1EhjGeM1b0pmwqEcsyHw.png)

As you can see, the message goes immediately after the title, and contact details (like name, communication method, phone, email) show in settings.

Now, _you can store all your contact form responses in custom post type using JetEngine & JetFormBuilder_.😊

### Creating CPT with free Pods plugin

Another way to create CPT is using the [free Pods plugin](https://wordpress.org/plugins/pods/), here are steps to follow:

- [Download and activate Pods plugin](#b7b3)
- [Create CPT and custom fields for storing form responses](#1cbe)
- [Create WordPress form](#f831)
- [Set Up post submit action](#b5d9)
- [Results](#ab50)

#### #1 Download and activate Pods plugin:

![Download and activate Pods plugin](https://cdn-images-1.medium.com/max/1024/1*mVh1XpECkNap_dQXstj22g.png)

#### #2 Create CPT and custom fields for storing form responses

Go to **Pods Admin -> Add New** , and let’s create another CPT, called **“Form Submissions”** :

![Create CPT and custom fields for storing form responses](https://cdn-images-1.medium.com/max/1024/1*Wzg72PxMaVPyTbCDlwB3qQ.png)

To add a new Pod, follow the steps:

![add a new Pod, follow the steps](https://cdn-images-1.medium.com/max/939/1*f5Tah1H1EvHSGKXatbZgew.png)

- Singular Label: Form Submission
- Plural Label: Form Submissions

Press Next Step, where we can **add new fields similarly to our form fields**.

💡This is important _to have fields the same as in your form._

Add Fields (similar to JetEngine Meta Fields). Your name, email, and phone are simple text field types:

- as the name is reserved for internal WordPress usage, I’ll go with the Your Name label

![Add Fields in pods cpt](https://cdn-images-1.medium.com/max/1024/1*9LpAEPKH_oipt9NO9Rvx1w.png)

And Radio field will look like, where you input choices too:

![radio field in pods cpt](https://cdn-images-1.medium.com/max/948/1*obu5YYXGo96YQH41LXjH6Q.png)

In results, I have 4 form fields created in my CPT with Pods plugin:

![](https://cdn-images-1.medium.com/max/1024/1*Qwv7SCbvQqDoA6Qczjt7ig.png)

Then, you’ll find Form Submissions CPT at the left side of the WordPress dashboard.

![Form Submissions CPT](https://cdn-images-1.medium.com/max/637/1*Ws76s288QIG-2zug0-znBA.png)

#### #3 Create WordPress form

I’ll create a similar WordPress contact form using [**this tutorial**](https://lanamiro.medium.com/how-to-build-free-wordpress-contact-us-form-with-jetformbuilder-step-by-step-bf72ab6f07e2).

![Create WordPress form](https://cdn-images-1.medium.com/max/1024/1*iN1kLZX2xT33_Yy7LBbPBQ.png)

#### #4 Set Up post submit action

When the form is ready, we need to create and edit post submit action (will be the same as above):

![Set Up post submit action](https://cdn-images-1.medium.com/max/1024/1*ILEfjuC8xs0EUbKPugCriQ.png)

After setting up Insert/Update Post action, I’ve published my contact form:

![publish contact us form](https://cdn-images-1.medium.com/max/1024/1*QOtSljJ9KRcn77PViXx6dg.png)

#### #5 Results

To finish, let’s test how it works with the Pods WordPress plugin. I’ve filled up my WP form:

![testing pods wordpress plugin](https://cdn-images-1.medium.com/max/1024/1*Uwuz-xgJvrhjLGC4HvBpaw.png)

And my submission immediately appears in Form Submission CPT created with Pods:

![my submission immediately appears in Form Submission CPT created with Pods](https://cdn-images-1.medium.com/max/959/1*XJ0yxV9vuBCr79aW2Q-DXA.png)

And fields mapped well:

![form submission example](https://cdn-images-1.medium.com/max/1024/1*4TMVJG4ATAYBUPg9xhU3Sw.png)

### Sum Up

Now, you know how to **store your form responses with custom post types**. To be honest, creating CPT with the JetEngine plugin was more fluent for me (maybe I just used to it), but if you need to stick with the free WordPress custom post types plugin, proceed with Pods or any [**other CPT plugin**](https://hackernoon.com/top-custom-post-types-plugins-for-wordpress).

Feel free to share any questions you may have in the comments below. 👇