Custom Fields
Re-Envisioned
Support MB Relationships Code Snippet Error in KB? Reply To: Code Snippet Error in KB?

#11149

Anh Tran
Keymaster

Thanks a lot! I’ve just fixed it. It should be:

MB_Relationships_API::register( array(
    'id'   => 'posts_to_pages',
    'from' => array(
        'object_type'  => 'post',
        'admin_column' => 'true',  // THIS!
    ),
    'to'   => array(
        'object_type'  => 'post',
        'post_type'    => 'page',
        'admin_column' => 'after title', // THIS!
    ),
) );