Hi @wowiwe
Thank you for response and I apologize for long delay. Apparently we missed notification about your post, I’m really sorry about that.
Unfortunately, I cannot download the form as the link is not publicly available. But based on your earlier posts I think there’s a bit of misconfiguration here.
Let me break that down below.
1. Form data
To add custom data – as custom fields – to post created by “post-data” field you first need to add regular form fields to the form so users could enter that additional data.
Then in “post-data” field you need to “map” those fields to custom meta.
Here is where first important thing comes up:
– no, the “{name-1}” field will not populate to “name-1” custom meta
– it will populate to whatever custom fields you choose/set.
In other words, in “Custom fields” setting of post-data filed you have a “label” and a “value”. In “Label” you set the name of the custom field and in “Value” you select form field that would provide data for it.
Take a look at this example, please:
https://app.screencast.com/yP8yGi2T1DY9X
In this case I set “label” to “my_name” and “value” to “{name-1}”. It means that whatever I type in in “name-1” field on the form, it will be saved with my newly created post in the custom field named “my_name”.
Note: for your convenience, you may want to avoid using spaces/blanks in “label” in such cases.
2. So the custom field name in this cases is “my_name” and not “name-1” or “{name-1}” and following this example, in the shortcode you would use it like this
vg_display_data key="my_name"
3. Yes, the source is “post_data” – it’s not due to how form field is named but how the shortcode plugin recognizes if to look into post, user etc in database.
So all together, shortcode would be
[vg_display_data key="my_name" data_source="post_data"]
—-
Provided that you set mapping correctly and used correct “key” in shortcode (following above explanation) it should work out of the box then.
Best regards,
Adam