Home › Forums › General Issues › Set current user as default in relational select field › Reply To: Set current user as default in relational select field
There’s really no code to show you for this. So far, it’s all in the GUI. The select field is being used when the user is creating or editing a custom post type. The choices (users listed as editors) are being populated automatically because it’s a relational field.
Is there something I can add to functions.php or someplace to set the default value for the editor field to the current 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.