Show MB Relationships field in Frontend Submission

Support MB Frontend Submission Show MB Relationships field in Frontend SubmissionResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14852
    proyectohappyweb@gmail.com[email protected]
    Participant

    Hello,

    I have the Relationships:

     MB_Relationships_API::register( array( 
        'id' => 'opinion_to_local', 
        'from' => array( 
            'post_type' => 'opinion', 
            'meta_box' => array( 
                'title' => 'Locales', 
            ), 
        ), 
        'to' => array( 
            'post_type' => 'local', 
            'admin_column' => true, // show admin column, maybe needs paid extention? 
            'meta_box' => array( 
                'title' => 'Opiniones', 
            ), 
        ), 
    ) );

    How can I show in the form Frontend Submission CPT 'opinion' the field to can choose the CPT 'local' ?

    Thanks,
    Sergio

    #14853
    Anh TranAnh Tran
    Keymaster

    Hi Sergio,

    Each meta box (from/to) has an ID: {relationship_id}_relationships_from and {relationship_id}_relationships_to, so you can just add these IDs to the id attribute of the shortcode to show on the front end.

    #14862
    proyectohappyweb@gmail.com[email protected]
    Participant

    oh perfect!! Thanks!!

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