Custom Fields
Re-Envisioned
Support MB Relationships Having trouble displaying relationships with admin columns pro

  • Creator
    Topic
  • #28659
    Resolved Jonathan Schroeder
    Participant

    Here's my code linking two content types:

    
    add_action( 'mb_relationships_init', function() {
        MB_Relationships_API::register( [
            'id'   => 'projects_to_markets',
            'from'   => array(
                'object_type'  => 'post',
                'post_type'    => 'projects',
                'admin_column' => true,
            ),
            'to' => array(
                'object_type'  => 'post',
                'post_type'    => 'markets',
                'admin_column' => true,
            ),
        ] );
    } );
    

    I have metabox core, the metabox relationships addon, admin columns pro and the metabox addon installed.

    The connections are being made, and I can see them on both ends when editing a single project or market. However, when I've added the columns using admin columns pro, I'm only getting a "Connects from" or "Connects to" header, with no information shown there.

    Anything obvious I'm doing wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #28679
    Long Nguyen
    Moderator

    Hi Jonathan,

    MB Core also includes the extension MB Admin Columns which helps you to show the relationships in admin columns, does not need to use other plugins.

    I will check the integration plugin Meta Box - Admin Columns Integrator and get back to you later.

    #28689
    Jonathan Schroeder
    Participant

    So, these are both paid upgrades, which is fine – but I know for sure that I've done this before without either of these addons. Are there any gotchas that you can think of that I'm just doing wrong? Even on this site, I saw them show up for a moment, and then something broke it (not sure what I changed).

    EDIT: just realized that the integrator actually is the same addon for Admin Columns Pro that I already have installed.

    #28703
    Long Nguyen
    Moderator

    Hi Jonathan,

    Can you please deactivate the plugin Admin Columns Pro and re-check this issue?

    #28710
    Jonathan Schroeder
    Participant

    This column is working fine when Admin Columns Pro is disabled; however, we do use it to show other necessary columns as well.

    #28722
    Long Nguyen
    Moderator

    Hi Jonathan,

    It looks like the Admin Columns Pro is not compatible with MB Relationships. The integration plugin is developed by their team, so please try to contact their support to ask for help in this case.

    #28812
    Jonathan Schroeder
    Participant

    Looks like they may have made a fix on their end for this, as it's suddenly working with no change on my part. Thanks for your help!

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