Build A Custom Post Form (Create Type)
Follow the steps below to build a form that allows users to create a custom post on your website using Divi Form Builder. Please Click HERE for detailed descriptions of each setting.
1.) Create Custom Post Type and ACF Fields.
In the example below, the custom post type is called Recruitment Profiles (this is for a recruitment website) and there are five ACF fields that will make up each applicants post.
2.) Add .Form Module.
Start off by adding the .Form module to the page of your choice.
Edit the main settings on the Content tab.
3.) Content Main Options.
Edit the main options by adding a title and ID. Then select your custom post type as the Form Type (in my example below this is a recruitment profile custom post). Customize the submit button and set whether you would like the custom posts to save to draft, publish or other.
4.) Content Notices Options.
Where would you like to display form notices? Select a position.
5.) Content Redirects Options.
If you would like the page to redirect to another URL after a failed or successful submission, please enable the button and add a URL.
6.) Content Extra Options.
In the extra section, you have the option to integrate Bloom or use Select2.
7.) Spam Protection Options.
Enable the simple Divi spam protection.
After completing the main settings of the content tab, you will need to add and customize form fields that relate to your custom post type so that users can upload data for the post.
1.) Field Options.
Give your form field a title, ID, type of field, etc.
2.) Layout Options.
What kind of layout do you want for the field? Enter a placeholder for the field, select full width, half-width and more.
3.) Mapping Options.
apping options are only for forms that are designed to create login and registration forms, pages, posts, and custom posts. Ignore this section for contact and login forms. Since we are building a custom post type form, we will need to select the Field Mapping Type and Field Mapping. In the example below you can see that the input field will map to the ACF field for the Recruitment Profiles custom post type called "Full Name" that was created in ACF.
4.) Conditional Logic.
Conditional logic enables you to create a dynamic form. For example, you can set it so that only certain fields show when others are activated. Please visit this LINK and read through the document to learn how to use conditional logic.
5.) Title Field.
Please make sure that you add an input field that maps to Post Title. This is because Divi Form Builder will only create a custom post if there is a title.
View your new custom post type form from the front end and remember to use the Design tab for extra style.