Home › Forums › Backend Issues (wp-admin) › Mapping user to post type › Reply To: Mapping user to post type
To associate the a post with a user you would need to have either a user field type on the post of a post object field on the user, or both and code them to be bidirectional.
However you set this up you’d need to have an acf/save_post filter that creates the relationship when a new user is added. Basically, something along the lines of when a new user is added a new post is automatically created for that user and this post is automatically added to the post object field for the user.
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.