Home › Forums › ACF PRO › Auto populate custom field with user data › Reply To: Auto populate custom field with user data
Thanks for the reply.
My programming skills are not very good so maybe you can help me on my way.
What I want to realize is that he retrieves users data from the user who is logged in at that moment.
So for example:
I have a text field called “name_provider” with id “field_5b0bc22b22606”.
This field is linked to a Custom Post Type. When a user posts a new message, the username of the logged-in user must automatically be entered in the “name_provider” field. So that when a user posts this new message his username is automaticly in the post.
Could you help me get started with this?
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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.