Home › Forums › General Issues › Bidirectional between Post and User › Reply To: Bidirectional between Post and User
So I have made the modifications to the file listed in the other thread, you can view it here https://gist.github.com/codytooker/56dd0bc7a6893d5e7bf5a5c25bc5e8ea
It probably needs to be clean up a bit with better comments but it works for what I need.
Basically I had to test which field was coming from a user and if so have to remove “user_” from the ID, later on in the file I have to use get_user_meta and update_user_meta in places instead of post_meta, I do this with a flag to easily switch between both.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.