Front End Form

Support MB Relationships Front End Form

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #47954
    Tanja KropfTanja Kropf
    Participant

    I see the option to link relationships in the sidebar that shows up in Gutenburg, but I need front end users to be able to link CPTs via relationships on the front end. Is that not an option? I've tried every setting in relationships and can't seem to make it work.

    #47955
    Tanja KropfTanja Kropf
    Participant

    Shouldn't "after content" in Context in the Meta Box show it in the form since "side" is not selected??

    #47960
    PeterPeter
    Moderator

    Hello Tanja,

    Each relationship box has the ID {$relationship_id}_relationships_from and {$relationship_id}_relationships_to. You can include these IDs in the form shortcode to show it on the front end.

    For example:

    
    [mb_frontend_form id="meta-box-id-1,posts-to-page_relationships_from" post_fields="title,content"]
    

    Following the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#how-to-add-relationships-to-the-frontend-submission-form

    #47961
    Tanja KropfTanja Kropf
    Participant

    Thanks Peter. What if I'm not using shortcode? I'm using Bricks.

    #47967
    PeterPeter
    Moderator

    Hello,

    If you use the Bricks builder, you also need to add the ID to the form option, like the field group ID.

    meta-box-id-1,posts-to-page_relationships_from

    #47974
    Tanja KropfTanja Kropf
    Participant

    Thanks. But I'm not understanding what the meta-box-id-1 field is a placeholder for? Is this the ID of my front end form? A field? I'm not sure what I should be using there.

    #47980
    PeterPeter
    Moderator

    It is an example field group ID, you can get the field group ID when editing a field group. Please check this screenshot https://imgur.com/dCYRXcC

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