Home Forums General Issues Bidirectional relation


Bidirectional relation

  • Hello,
    I have two CPTs, one called ‘Resort’, and the other called ‘Stay’. I would like to create a field relationship to select a ‘Stay’ in the ‘Resort’ post.
    But I wish that once a ‘Stay’ is selected in a ‘Resort’, it can no longer be selected in another ‘Resort, and conversely: each’ Resort ‘has only one’ Stay ‘ ‘and each’ Stay ‘can only be linked to one’ Resort ‘. Is it possibe?
    I tried to follow this tutorial:; but in your example it’s about relationship between posts that have the same CPT, and I need to do that between 2 different CPTs. Can you help me ?
    Thank you!

Viewing 1 post (of 1 total)

The topic ‘Bidirectional relation’ is closed to new replies.