Select related post in frontend submission form

Support MB Frontend Submission Select related post in frontend submission form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #42939
    Kyrre Arne MartilaKyrre Arne Martila
    Participant

    Hi,
    I have a cpt called trips, and a cpt called company. I want drivers to be able to add a new trip, and select which company it was driven for. Its for a transport central with several companies. I have read documentation, and created the relationship, and added the relationship id and custom fields id separated by comma, but the relationship doesnt show up. Using bricks builder.

    #42949
    PeterPeter
    Moderator

    Hello Kyrre,

    To display the relationship in the frontend with code, please follow the official documentation https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items

    If are using Bricks builder, please refer to this article https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items
    or contact their support to get further assistance.

    #42962
    Kyrre Arne MartilaKyrre Arne Martila
    Participant

    The problem is not to show the relationship, but to be able to choose related posts in frontend submission form.

    In the id field of the submission form I have written trip-field-group,trip-company-relation
    But only the trip field group is showing up in the submission form. It’s probably just something minor I’m missing, total beginner with custom post types.

    #42974
    PeterPeter
    Moderator

    Hello,

    If you want to display relationship in the frontend submission form, please add the relationship meta box ID relationshipID_relationships_from or relationshipID_relationships_to to the id attribute of the frontend shortcode. For example:

    [mb_frontend_form id="trip-to-company_relationships_from" post_fields="title,content"]
    

    Related topic https://support.metabox.io/topic/mb-relationships-mb-frontend-submission/

    If it does not work, please export the relationship on your site to a JSON file and share it here. I will help you to check the issue.

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