Support

Account

Home Forums Backend Issues (wp-admin) Dynamic population in Backend

Helping

Dynamic population in Backend

  • 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?

    • Elliot

    • September 14, 2013 at 1:44 pm

    Hi @aaronrobb

    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.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.