Update Wordpress function for custom Gravity Forms field population

At the moment t we have a Gravity Form where a dropdown is dynamically populated with the values in a User Profile custom field - in this case the Coach’s expert area.

We have now changed the way we organize the expert areas and they are now a proper taxonomy ‘Expertise’ in the User type.


I’d like the code to look at the taxonomy ‘Expertise’ and list all the terms that are being used at least once in the dropdown.

Each term should be listed only once, even if used by multiple coaches.

The dropdown list should be sorted alphabetically.

Existing Code:

function populate_coaches( $form ) {

if ( $form['title'] != "Coaching" ) return $form;

foreach ( $form['fields'] as &$field ) {

if ( $field->type != 'select' || strpos( $field->cssClass, 'coaches-dropdown' ) === false ) {



// Instruction: Change this to look for all terms in user taxonomy Expertise instead

$args = array (

'role' => 'coach',

'meta_key' => 'expertise',

'orderby' => 'meta_key',

'order' => 'ASC'


// Create the WP_User_Query object

$wp_user_query = new WP_User_Query($args);

// Get the results

$coaches = $wp_user_query->get_results();

//$choices = array(array('text' => 'Please choose:', 'value' => 0 ));

$i = 1;

foreach( $coaches as $coach ) {

// Load the userinfo

$coach_info = get_userdata($coach->ID);

$coachname = $coach->display_name;

$coachexpertise = $coach->expertise;

$choices[] = array( 'text' => $coachexpertise, 'value' => $i++, 'isSelected' => false );


$field['choices'] = $choices;


return $form;


I'd be expecting this to take no more then 15 minutes or so. FTP access can be arranged.

Kemahiran: PHP, Wordpress

Lihat lagi: gravity forms populate field from database, gravity forms dynamic population drop down, gravity forms pass value from one field to another, gravity forms populate html field, gravity forms query string builder, gravity forms populate field from another field, gravity forms dynamic population checkbox, gravity forms dynamically populate multiple fields, wordpress custom query sort field, wordpress sort custom field date, wordpress work custom field, wordpress plugin custom field browse, wordpress plugin custom field, wordpress custom posting forms, wordpress custom login forms, wordpress insert custom youtube player custom field, call javascript function custom field registarion form vbulletin, wordpress date custom field range field, wordpress query custom date field, wordpress sort custom field numeric

Tentang Majikan:
( 15 ulasan ) Jönköping, Sweden

ID Projek: #17607357

Dianugerahkan kepada:


Hey, I can do it with less than 1 hour. I'm ready now please let's get started working soon. Thanks, Alex.

$15 USD / jam
(7 Ulasan)

33 pekerja bebas membida secara purata $13/jam untuk pekerjaan ini


Dear carlencom. I have experienced with gravity form I'm #1 WordPress Vietnam in here.. Our WordPress's projects: [login to view URL] Our latest Sweden's projects: [login to view URL] Lagi

$15 USD / jam
(1017 Ulasan)

Hello! My name is Yana. I am a manager of Webcapitan team. We are the group of web-developers. We've been successfully working on developing websites for more than 5 years. By this time our creative company has made a Lagi

$14 USD / jam
(221 Ulasan)

Hello, I will integrate the specified functions into your website. I will update your website as per your requirements and expectations. I would like to have a discussion for further details. Can we discuss over Lagi

$16 USD / jam
(232 Ulasan)

Hello sir, I am a WordPress developer with more than 8 years of experience. I have been developed more than 100 Wordpress as if now. I am expert in theme integration, Plugin & widget installation & implementation. Lagi

$12 USD / jam
(44 Ulasan)

Hello, Greetings for the day! Kindly check my profile I am a top rated developer and can do about anything with Wordpress. You need not worry I will take care of your job and come up with flying colors very soon. Lagi

$11 USD / jam
(91 Ulasan)

Hello Prospects "I am an Expert/Passionate WordPress Website Developer with Great knowledge and I would be honored to assist you as soon as you share the requirements. "I am ready to assist you for Complete/Rev Lagi

$12 USD / jam
(177 Ulasan)
$27 USD / jam
(162 Ulasan)

Greetings !! Myself Richa have more than 10 year experience in web development with PHP and php frameworks as well as designing.I read your job description and understand that you are looking good developer who ha Lagi

$10 USD / jam
(171 Ulasan)

Hello, I've read your project description and I want to tell you that I can Update WordPress function for custom Gravity Forms field population for you as per your requirements. Lets have a quick chat to discuss thi Lagi

$12 USD / jam
(142 Ulasan)

Hello, I have been engaged in website development and design. I hope my work, reviews & rating will comfort you to to discuss this project with me. I analyze your requirements those you mention in your project descript Lagi

$12 USD / jam
(200 Ulasan)

Dear Sir, Nice to meet you. Lets discuss more over chat. I will Update Wordpress function for custom Gravity Forms field population. I am an expert mobile and web developer by profession from Poland. I hav Lagi

$13 USD / jam
(32 Ulasan)

Hello, Hope you are doing well!!! Having 8+ yrs of experience in web development and designing Technology stack: Front End: HTML, CSS, Angular JS, React JS, jQuery, Javascript Back End: PHP, Laravel, Lagi

$20 USD / jam
(109 Ulasan)

Hello There, Greeting of the day! As per your project requirement, would be able to work gravity form and implement the dropdown code. Please share me more info. I have been working as developer last 9 yrs. Lagi

$12 USD / jam
(27 Ulasan)

Hi, I have reviewed your job posting carefully and came to the conclusion that I could help you fix issues. Actually as an experienced Web developer for 5+ years, I have so many experiences in building/revamping Lagi

$12 USD / jam
(35 Ulasan)

Hello Sir, I have read your job description regarding Update Wordpress function for custom Gravity Forms field population I have 6+ year of experience in PHP, WordPress. I have strong expertise to accomplish this Lagi

$12 USD / jam
(105 Ulasan)

Dear hire manager, Gone through the project posted by you and clearly understood your need. 100% sure we will deliver good quality of work in your [login to view URL] are very much interested to work on this project. we have Lagi

$8 USD / jam
(23 Ulasan)

HI, As per your job description, I am the senior developer I am skilled in both the front end and back end technologies. I am having 6+ years experience in this field so I can assure you to provide you quality work Lagi

$12 USD / jam
(34 Ulasan)

Dear Sir, I saw your project’s details properly. And according to my experience and abilities of website work, I would be a perfect freelancer for this project. Mobile application development , Website development & Lagi

$12 USD / jam
(20 Ulasan)

Hello sir, i am interested in your project ready to start work as per your requirement waiting for your response Thanks

$12 USD / jam
(63 Ulasan)

Hello Recruiter, I read out all the descriptions and i am willing to work with you, Thanks for the wonderful opportunity I will create a WordPress Beautiful Website for you. I will provide you pixel perfect and f Lagi

$12 USD / jam
(25 Ulasan)