WordPress Creating Custom Posts with Formidable Forms
In the previous tutorial, I showed you how to define a custom post type with CPTUI and Advanced Custom Fields. It should be noted here that neither of these plugins is necessary if you know a little PHP and some of the basic WordPress function calls. In this tutorial I’m going to show you how to extend the previous tutorial to create Custom Posts with Formidable Forms.
I’ve targeted these exercises to WordPress administrators who may not be at total geek-level, hence the use of plugins.
If you’d completed the previous tutorial, you would have gone through the process of using CPTUI to create the Custom Post Type, and Advanced Custom Fields to create the fields that were to be used in each Testimonial.
At this point, you would only have been able to add a new Testimonial whilst logged-in to your WordPress site as an administrator. This is great if you’re happy to collect testimonial content from your emails and manually add each one yourself.
But there’s an easier way – just get the person who’s giving you the testimonial to fill in the information themselves!
- Create a front-end form to collect Testimonial content from any user.
- Save the collected data for re-use at any time (ie: marketing campaigns).
- Automatically create a new Testimonial Post, saved as a draft pending Administrator approval.
You can create custom posts with Formidable Forms! It might seem a complex process, but just imagine the control you’ll have with content!
We’ll be using the setup created in the previous tutorial:
The open source (free) version of Formidable Forms doesn’t have the capability to generate Custom Post Types, so we’ll be using the Pro Version (Single site license $49).
I know it might be a bit of a stretch to ask you to go buy a plugin in order to do a tutorial, but trust me – it’s one of the best form plugins you’ll ever buy and I promise you won’t regret it!
I’ll presume that you’re already familiar with installing plugins. When you’ve purchased your Formidable Pro License, install the plugin and activate the license.
Advanced Custom Fields.
You should now review the custom fields that you created in the previous tutorial. You should also have a look at the default page that you use to create a new Testimonial Post in the WordPress Admin Dashboard. You’ll note that all the custom fields that you created appear as fields ready for you to add content.
Remember that the goal of this tutorial is for a new Testimonial Post to be created on the browser front-end, not via the Dashboard. In order to make this happen, we have to map all the fields created in the Advanced Custom Fields panel to form elements made in Formidable Forms.