prevent duplicate relationship

Support MB Relationships prevent duplicate relationship

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #49767
    aryanrajaryanraj
    Participant

    Hi, i have a relationship from pictures to books. the relationship is 1:1 Reciprocal relationship. i want to prevent assigning a pictures post (type). to a different book. I basically want to hide the already linked relation post so it not get reassigned to different.

    i see there is Query args, wonder if anyway we can exclude those already have relationship assigned.

    Thanks.

    #49771
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    There isn't an option to exclude a post from the list if it has a relationship. I will inform the development team to consider supporting this feature in future updates.

    Regarding the reciprocal, it will work if you have the relationship for the same post type. Like from pictures to pictures. Following the documentation https://docs.metabox.io/extensions/mb-relationships/#relationship-settings

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