This may be a ‘way out there’ idea, but is there a way to dynamically populate a field based on a user’s info?
So lets say a user/author creates a new custom post type. In the post editor, there is a field called ‘address’. Can this one field pull from the user’s info page (assuming it has a field called ‘address’) to populate it automatically?
Or is this totally not a viable function right now?
Yes, this is completely possible. The question is, are you sure that you want to store this kind of information on each post. By doing so, if the user was to update their address, you would have incorrect data all over the place.
It may be smarter to use a user_field to relate the user to the post, then in the template load the address data from the related user.
Is this a possibility?
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users