Relationship content submission

Support MB Frontend Submission Relationship content submissionResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30733
    GavinGavin
    Participant

    I have successfully created a quick mockup of a form that allows a user to submit a review and connect it (set the relationship) with an organisation, , showing a dropdown of organisations to connect to:

    [mb_frontend_form id='review-relationship_relationships_to' post_fields='title' post_type='review']

    However, when I add a custom fields group id into the mix, nothing happens:

    [mb_frontend_form id='review-relationship_relationships_to, review-fields' post_fields='title' post_type='review']

    If I put 'review-fields' before 'review-relationship_relationship_to', only the review fields display, and the review relationship dropdown disappears:

    [mb_frontend_form id='review-fields, review-relationship_relationships_to, review-fields' post_fields='title' post_type='review']

    I thought we could return multiple meta boxes by inserting their IDs separated by a comma?

    Thanks.

    #30747
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Yes, we can add multiple meta box IDs by using separate commas but without space. Like this

    [mb_frontend_form id='review-fields,review-relationship_relationships_to' post_fields='title' post_type='review']
    
    #30754
    GavinGavin
    Participant

    Thanks Long, that worked.

    How do I move the relationship dropdown field to 'above' the Title field?

    Thanks.

    #30761
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please follow this documentation to know how to re-order post fields https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fields

    #30769
    GavinGavin
    Participant

    Ah, right - I think I've got that now. Thanks for your help 🙂

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