The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Custom content types and metadata
Just as a follow up to some questions asked by people in relation to custom post type metadata and Easy Content Post Types by PippinsPlugins. I have created quite a few custom post types using ECPT and associated custom metadata - tender and 'result', 'date added', 'team' etc.
I can map forms created using Formidable Forms to the custom post type no problem, but thought I would share some observations when it comes to custom metadata. I put the custom meta in the custom field part of the Formidable form (form settings/create posts) ecpt_results and match it to a field in my form - everything seems fine even though it is not quite the case.
If you disable custom fields for the custom post type in ECPT, the custom fields meta box is not visible in the admin area for the custom posts, though it appears the wp custom fields are still populated by Formidable Pro. The matching meta field created in ECPT is also correctly set/updated (assuming the names are the same), so you can just display the ECPT meta fields and leave the wp custom fields hidden.
However, as FMP seems designed to work with standard wp custom fields problems arise with some of the special meta field types supported by ECPT - Date fields for example. I have not yet approached Pippin or the FMP people to see if there is a way they can make the plugins work better with each other. For now, you can either use a trigger to insert the correct date format in the ECPT field or leave your date related fields as text fields and then use some code to convert this into a date field when calling it via php in theme templates.
Anyway, I hope this helps someone else trying to work out why the date fields on their form for a custom post type do not work as expected.
January 27, 2014 at 8:02 am
All Formidable dates fields are saved in yyyy-mm-dd format. Do you know what format that plugin saves dates in?
If you choose a post type without custom fields setup, then you wouldn't select any in the Formidable settings either.
Discussion closed.