Cannot hide relationship

Support MB Relationships Cannot hide relationship

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #14890
    ecurtainecurtain
    Participant

    I'm trying to create a relationship where the "to" side is hidden:

    
    define ( 'TYPE_PRODUCT',        'product' );  
    define ( 'TYPE_INDUSTRY',       'industries' );
    define ( 'PRODUCT_TO_INDUSTRY', 'product_to_industry');
    
        MB_Relationships_API::register( array(
            'id'   => PRODUCT_TO_INDUSTRY,
            'from' => array(
                'object_type' => 'post',
                'post_type'   => TYPE_PRODUCT,
                'meta_box'    => array(
                    'title'         => 'Linked Industries',
                ),
            ),
            'to' => array(
                'object_type' => 'post',
                'post_type'   => TYPE_INDUSTRY,
                'meta_box'    => array(
                    'hidden'        => true,
                ),
            ),
        ) );

    But I cannot get the "to" side to be hidden. I've tried moving the 'hidden' parameter around and using 'true', without success.

    Can you assist? thanks.

    #14901
    Anh TranAnh Tran
    Keymaster

    Hi @ecurtain,

    Can you try the latest version on Github? I've fixed that here.

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