Dynamically populate

Hi, I’ve googled this one but i’m not 100% on the how too, I’m not an experienced person in this.

Is it possible to populate a dropdown field with user data for example we’d like to create a form where a logged in user selects the drop down and the options given are all the users names on the website.

Thanks

Dan

Yes, you can use this approach:

Instead of the get_posts WordPress function, you would use a WordPress function like get_users:

https://codex.wordpress.org/Function_Reference/get_users

Thanks for the reply Chris, I think that’s too advanced for me to comprehend at this stage.

There is help available for hire here if you decide to pursue it:

Ah now that sounds like a promising way, is this something you do or can you recommend someone.

Thanks

Danny

I would recommend any of the individuals here:

Thanks for the information

1 Like