Support Forum » User Profile

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: Relationships have stopped saving #19070
    nermnerm
    Participant
    add_action( 'mb_relationships_init', function () {
        MB_Relationships_API::register( array(
            'id'   => 'products_to_products',
            'from' => array(
                'object_type' => 'post',
                'post_type'   => array('carburetors', 'distributors','linkage-kits','fuel', 'parts'),
                'meta_box'    => array(
                    'context' => 'normal',
                    'columns' => 3,
                    'title'       => 'Connected to Products',
                    'field_title' => 'Select Product',
                ),
            ),
            'to' => array(
                    'object_type' => 'post',
                    'post_type'   => array('carburetors', 'distributors','linkage-kits','fuel', 'parts'),
                    'meta_box'    => array(
                        'context' => 'normal',
                        'columns' => 3,
                        'title'       => 'Connected from Products',
                        'field_title' => 'Select Products',
                    ),
                ),
            ) );
    } );
    in reply to: Relationships metabox in group metabox #9084
    nermnerm
    Participant

    Doh!

    Of course, sorry lol!

    Many thanks

    in reply to: Relationships metabox in group metabox #9071
    nermnerm
    Participant

    I have a cpt called faq's, each post has a metabox clone group to add multiple questions and answers. Rather than add relationships to another cpt's posts to the entire faq post I would like to add relationships to the individual cloned groups Q & A:

    Q:What is the average air speed velocity of an unladen European swallow?
    A:about 24 miles per hour or 11 meters per second.
    Related Article: European swallows

    Q:Do Coconuts migrate?
    A:Sed ut perspiciatis unde omnis iste natus error sit voluptatem laudantium.
    Related Article: African swallows

    nermnerm
    Participant

    Thanks for quick reply, any further help in regards to the javascript would be greatly appreciated.

Viewing 4 posts - 1 through 4 (of 4 total)