This can be made easier by creating a bidirectional relationship field, if it’s not too late to do so. Add this would mean updating every post with a relationship after the code is added.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.