Issue with Relationship not displaying connected posts
Support › MB Relationships › Issue with Relationship not displaying connected posts
- This topic has 17 replies, 5 voices, and was last updated 1 year, 7 months ago by
ScottN.
-
AuthorPosts
-
August 30, 2023 at 8:42 AM #43085
Johnny Vu
ParticipantI have 2 CPTS, "Developers", "Projects"
I created a relationship called "Developers to Projects".
From:
Post type -> DevelopersTo:
Post type -> ProjectsWhen 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?
August 30, 2023 at 10:33 PM #43091Peter
ModeratorHello 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.August 31, 2023 at 6:38 AM #43096Johnny Vu
ParticipantHey Peter,
Thanks for replying, I have reloaded the page and still cannot see it in the admin columns
August 31, 2023 at 10:08 PM #43104Peter
ModeratorHello,
Can you please share a screenshot of the relationship settings? Are the connected posts saved properly?
September 6, 2023 at 3:09 AM #43150Johnny Vu
ParticipantHere are the screenshots you requested
September 6, 2023 at 3:12 AM #43151Johnny Vu
ParticipantOops, I embedded the wrong links
September 6, 2023 at 9:32 PM #43156Peter
ModeratorHello,
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
September 8, 2023 at 1:16 PM #43178Johnny Vu
ParticipantHi 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
September 9, 2023 at 8:21 AM #43187Peter
ModeratorHello,
Please share your site credentials via this contact form https://metabox.io/contact/
I will take a look.September 9, 2023 at 8:38 AM #43189ScottN
ParticipantHi @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?
September 9, 2023 at 8:41 AM #43190ScottN
ParticipantP.S. it still doesn't explain why the admin columns are empty for the posts relationships though. Just a thought for @Peter.
September 10, 2023 at 1:59 AM #43194[email protected]
ParticipantWe 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 BYmbr_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' 1054All 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.September 12, 2023 at 4:58 AM #43214ScottN
ParticipantOK 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=scottAfter 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 GroupPS 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)).
September 12, 2023 at 7:13 AM #43215ScottN
ParticipantOK, 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.September 12, 2023 at 7:16 AM #43216ScottN
Participant^^^ I was referring to admin column.
-
AuthorPosts
- You must be logged in to reply to this topic.