MB_Relationships_API::each_connected not working, need fix or alternative

Support MB Relationships MB_Relationships_API::each_connected not working, need fix or alternative

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #44020
    John RoodJohn Rood
    Participant

    Same exact issue as what is going on in this thread. We need a good solution for archive pages, as the documentation mentions MB_Relationships_API::get_connected has performance considerations when loading many posts. We need a fix for MB_Relationships_API::each_connected or an alternative, since this was previously working functionality that seems to have been inexplicably removed.

    #44025
    PeterPeter
    Moderator

    Hello John,

    As I mentioned in that topic, please use the function get_connected() to fix this issue. Following the documentation
    https://docs.metabox.io/extensions/mb-relationships/#getting-connected-items

    #44027
    John RoodJohn Rood
    Participant

    Will that have an impact on performance? This is for an archive page

    #44035
    PeterPeter
    Moderator

    Hello,

    Currently, there is only one way to display relationships on the archive page. However, I don't see an impact on performance. I've also escalated this issue to the development team to fix it. I will let you know when it's done.

    #44864
    Ben RBen R
    Participant

    Is there any update on this? I, too, could not get each_connected working and switched to get_connected, but we need a solution with a single query for performance reasons. (The documentation refers to each_connected but if this isn't accurate, it should be updated.)

    #44886
    brandonjpbrandonjp
    Participant

    🔪
    💔
    ouch.
    hours.
    gone.
    a note in the docs would be very kind

    #47789
    MatthiasMatthias
    Participant

    There is still in March 2025 MB_Relationships_API::each_connected everywhere in the Metabox documentation. What is true?

    #47791
    PeterPeter
    Moderator

    Hello Matthias,

    The issue with MB_Relationships_API::each_connected has been resolved. Can you please update Meta Box plugins to the latest versions and recheck the issue?

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