I have several questions regarding how to map Custom Post fields in the Post Content Template area to the actual custom fields in a Custom Post type.
Overview
I am using an ecommerce plugin that has several custom fields in a custom "create new product" post type. The plugin has custom fields such as price, quantity, etc.
I want to create a Gravity Form that takes the input from the form, creates a post automatically and populates each of those custom fields in the "create new product" post type. I have installed the "Gravity Forms + Custom Post Types" plugin for this purpose.
I created a Gravity Form that uses both a Title Post Field and a Body Post Field. In the "Title Post > Advanced Field" area, I checked the "Save as Custom Post Type" and selected the "create new product" post type that came with the ecommerce plugin. In the Body Post Field, I checked the "Create Content Template" box and looked to insert the fields from the "create new product" plugin. I ran into several issues.
Question 1
None of the fields from the ecommerce plugin's "create new product" post type show up in the "Body Post Field > Create Content Template" drop-down list. How do I configure this so that the custom fields in the ecommerce plugin "create new product" custom post type show up in this drop down? These fields display in the custom page template that came with the ecommerce plugin.
Question 2
To try to figure out the mapping issue, I created a completely "New Custom Field" (not from the plugin). That "New Custom Field" did show up in the "Body Post Field > Create Content Template" drop-down list, so I selected that field and inserted the "New Custom Field" into the "Create Content Template" area. I saved the Gravity Form, filled out the Gravity Form section for the "New Custom Field" and submitted the Gravity Form.
The information I typed into the "New Custom Field" showed up in the Body section of the Custom "Create a Product" Post instead of the "New Custom Field" section of the custom "create new product" post.
How do I configure this so that data entered into Gravity Forms is mapped and shows up in the "New Custom Field" area of the "create new product" custom post -- and not just all in the body section of the custom post?
Question 3
I have questions on the correct format of inputs in the Post Content Template area. In the various forum posts I researched, I see suggested entries such as {post body:3} or {Post custom field:4}. Questions:
a. In the input format "{Post custom field:4}", what does "post custom field" refer to and what does the "4" refer to?
b. For a field that does not show up in the "Insert Field" drop down menu, how do you identify the correct ID of a field? (For example, if the field in the php template page is something like "purchase_price", would the field ID be "purchase_price"?)
c. What would be the correct format for inserting a custom field named "purchase_price" in the Post Content Template area so that it shows up in the correct "purchase price" custom field (not just the body filed) of the "create a product" custom post type?
Many thanks for any help on this.