Using multiple forms for a single custom post type

Support MB Frontend Submission Using multiple forms for a single custom post type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33342
    RodrigoRodrigo
    Participant

    Is it possible to create entries in a CPT from multiple forms? I would not like to create a post type for each form.

    I created a custom post type with various fields and would like to use multiple forms to fill it, each with only some of the fields used in the post type.

    I have tried to create a new field group without a defined post type - but with the same field IDs as in the CPT fields - and have included a form in the post that actually saves a new entry in the post type - but all fields are empty.

    #33345
    Long NguyenLong Nguyen
    Moderator

    Hi Rodrigo,

    Is it possible to create entries in a CPT from multiple forms?
    No, it's not possible. You can create more field groups, assign them to one post type. Then put all field group IDs into one form. Like this

    [mb_frontend_form id="meta-box-id1,meta-box-id2,meta-box-id3" post_fields="title,content"]

    Refer to the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.