Custom Fields
Re-Envisioned
Support MB Frontend Submission Show MB Relationships field in Frontend Submission

This topic contains 2 replies, has 2 voices, and was last updated by  proyectohappyweb@gmail.com 4 months, 1 week ago.

  • Creator
    Topic
  • #14852
    Resolved
    proyectohappyweb@gmail.com
    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #14853

    Anh 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

    oh perfect!! Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.