I think you need to check if a restaurant post with the same title exists or not (I believe the restaurant and supplier name are unique ). If it does, then check if a supplier post with the same title exists or not. If the supplier exists, get the ID and update the relationship. If not, create a new supplier first.
I hope this makes sense 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Clients need flexibility. Developers need a repeatable workflow that doesn’t have a steep learning curve. See how digital marketing agency Noiza found both with Advanced Custom Fields in our latest case study.https://t.co/BxQAy6COJt