Support Forum
Support › MB Relationships › Having trouble displaying relationships with admin columns proResolved
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?
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.
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.
Hi Jonathan,
Can you please deactivate the plugin Admin Columns Pro and re-check this issue?
This column is working fine when Admin Columns Pro is disabled; however, we do use it to show other necessary columns as well.
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.
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!