Support Forum
Support › MB Relationships › Issue with Relationship not displaying connected posts
I have 2 CPTS, "Developers", "Projects"
I created a relationship called "Developers to Projects".
From:
Post type -> Developers
To:
Post type -> Projects
When editing the post I can see the connected posts that I selected. I also enabled Show in admin column. When looking at the list of posts the relationship is blank in the admin column.
Im using bricksbuilder, I followed the tutorial on youtube from Metabox and it's extremely simple. However I'm not getting any results returned.
This leads me to believe the fields are not saving properly, are there any requirements for the relationship to work?
Hello there,
After selecting some connected posts between Developers and Project and reloading the page, you can see the selected posts then the relationship works properly.
If you have trouble when outputting the relationship post with Bricks Builder, please contact Bricks support to get further assistance. The compatibility feature is maintained on their side.
Hey Peter,
Thanks for replying, I have reloaded the page and still cannot see it in the admin columns
Hello,
Can you please share a screenshot of the relationship settings? Are the connected posts saved properly?
Here are the screenshots you requested
Oops, I embedded the wrong links
Hello,
Please open the Screen Options area and see if the option Connected From is disabled. If yes, please enable it to show the admin column, screenshot https://imgur.com/wuAxWg8
Hi Peter, thanks for replying. I checked screen options and the option is enabled that's why you can see the "Developers" column in the screenshot. If I disable it, it disappears
Hello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a look.
Hi @Johnny and @Peter. I can confirm this issue. I too have a relationship setup (but I have mine set as reciprocal) to link posts just like you do Johnny and I have the same issues:
1. Relationships have disappeared off the frontend, they stopped working.
2. The admin column for related items is there... but empty. The items are not listed.
3. The items are still perfectly fine in each of the Meta box areas for the posts.
4. I too have Bricks Builder, the latest issue v1.9.
However... @Johnny the relationship shows up just fine in the editor when I am EDITING the Bricks template that displays the relationship.
@Johnny set your template to display that exact post when editing the template:
In your template go to > Settings Gear > Template Settings > Populate Content > Content Type: Single post/page > Single post/page: [what-ever-post-contains-an-example-relationship].
One the screen reloads, if it shows correctly for you in the editor, but not on the front-end, this might be a Bricks Builder issue.
This is as far as I've gotten on this issue.
What do you need from me to help with this?
P.S. it still doesn't explain why the admin columns are empty for the posts relationships though. Just a thought for @Peter.
We are also having the same issues! Has there been any updates?
I also found this error using Query Monitor: SELECT wp_posts.ID
FROM wp_posts
INNER JOIN wp_mb_relationships AS mbr
ON (mbr.to = wp_posts.ID
AND mbr.type = 'faqs-services'
AND mbr.from IN (9196))
WHERE 1=1
AND ((wp_posts.post_type = 'services'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'acf-disabled'
OR wp_posts.post_status = 'future'
OR wp_posts.post_status = 'draft'
OR wp_posts.post_status = 'pending'
OR wp_posts.post_status = 'private')))
GROUP BY mbr_faqs-services_from
, wp_posts.ID
ORDER BY mbr.order_from
WP_Query->get_posts()
Plugin: meta-box-aio Unknown column 'mbr_faqs-services_from' in 'group statement' 1054
All of our Relationship Settings are correct and were working just fine.
If I go into each post, there is a relationship field selected but it does not show in the admin columns or the front end.
OK I can give my latest for this issue:
I am also in the Bricks forum issue for this here:
https://forum.bricksbuilder.io/t/no-bug-metabox-relationship-queries-stopped-working-in-bricks/15197/19?u=scott
After simply disabling Object Cache plugin (required by Cloudways.com), Meta Box Relationships immediately show up again 1. in the admin-column, the relationship members show up there and 2. on the front-end where they are supposed to be. It displays as intended.
@Peter and team, does anyone have the ability to install the Object Cache plugin to see this fail?
Plugin causing an issue of far:
Object Cache Pro (MU)
Description: A business class Redis object cache backend for WordPress.
Version: Version 1.19.0
By: Rhubarb Group
PS just FYI, this plugin is a Cloudways.com requirement as they put it in our MU plugin classification, so we can't get around using it.
As it stands my (all of our) relationships are broken until this gets resolved (for those of us using Object Cache Pro (MU)).
OK, I just tested this on Meta Box AIO Version 1.22.0 (which is an older version) and Bricks 1.8.6 (also older version) and it still does the same thing:
Relationship does not show in admin bar or front-end when Object Cache is enabled. When Object Cache is disabled, Relationship shows in admin bar and front-end.
^^^ I was referring to admin column.