amitpukale
|
The Back-end (wp-admin) form for the New item for custom post type is very well done.
i was wondering if i can use the same on the front-end, is there any way we can do that ?
let me know if there is a way or suggest some alternative.
|
traversal
Post count: 207
|
Hey Amit, thanks for the feedback.
Using the custom field interfaces for the front-end is not something that can be done easily. While the custom field UI is a form-based interface, it’s a fairly different problem to build front-end forms for the actual web site, and is something that is likely better served by the plugins like Gravity Forms which specialise in doing just that.
|
h2 Media Labs
Post count: 4
|
So there is no way to echo the fields into a front-facing form (i.e. not the whole backend interface) ? Some of the docs seem to suggest it’s possible to “echo” the fields, but perhaps that just means the properties/data?
This is a big issue for us as we will need a front facing form for our custom post type. Is there a way to integrate MP with Gravity or Ninja forms?
Thanks! Mary
|
traversal
Post count: 207
|
Hey Mary.
While there’s no specific support yet for Gravity Forms, you can still use the “Custom Field” button under “Post Fields” and select the post meta fields that MasterPress use to store its content. The standard WordPress post meta is still used by MasterPress, with the field names being “field_set_name.field_name”. So if you had a field set called “custom” and a field called “description”, you’d see “custom.description” in the list of fields in Gravity Forms, which can then be submitted into. Then when you subsequently edit the field in WordPress, the data should show up in your custom (masterpress) field.
Some of the the more complex field types (like related posts etc) may not work entirely correctly but the more basic text-based fields should work okay.
I would like to bring in specific support for Gravity Forms at least, so that MasterPress could display a more tailored UI for custom fields within the form too, but it’s not a trivial addition.
Hope that helps for the moment.
Thanks.
|