Lengkap

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.

Task:

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 ) {

continue;

}

// 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:
( 13 ulasan ) Jönköping, Sweden

ID Projek: #17607357

Dianugerahkan kepada:

kcgzerone520

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
(1 Ulasan)
1.5

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

sapotacorp

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
(964 Ulasan)
8.6
narmadatech

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
(223 Ulasan)
8.1
point2solutions

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
(41 Ulasan)
8.0
maxpl

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)
6.6
$27 USD / jam
(120 Ulasan)
6.7
Brightinfotech3

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
(155 Ulasan)
6.8
hawkscodeaus

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
(106 Ulasan)
7.4
enigmaitsolution

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
(22 Ulasan)
5.8
navjootkaur

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
(92 Ulasan)
5.8
abhishekkoundal6

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
(32 Ulasan)
5.8
bizdigitalbrain

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)
5.5
iitsolutions

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
(21 Ulasan)
5.1
delostyle

Hi , I have gone through the job details carefully and I am excited to start working on this project. I am confident that I can exceed your expectations by my quality of delivery. I have an extensive knowledge Lagi

$8 USD / jam
(13 Ulasan)
3.8
radhesuthar86

Hi Radhe Shyam from india here.I can deliver this project successfully.I think I’m a great fit for this project because I have an interest in project and can deliver on time, according to your specifications. I hav Lagi

$13 USD / jam
(3 Ulasan)
2.7
webdroidsolution

Dear Client, 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 few queries kindly ping Lagi

$13 USD / jam
(3 Ulasan)
2.4
dbuglab

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
(162 Ulasan)
2.4
junkyfunky

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
(110 Ulasan)
1.4
dhavalschotaliya

Hello, I have read your requirement and i am interested in your job. I have 5+ year experience of Wordpress and PHP. I can start work now. I know you will get lots of low ball bids. Waiting for your positive reply Lagi

$8 USD / jam
(21 Ulasan)
1.7
poonamrkaushik

Hello sir, I am Wordpress expert with 6 years experience. completed over 100 projects. I have understood the requirements. I can complete your work within time with quality and big smile promise. I believe in Lagi

$10 USD / jam
(0 Ulasan)
0.0
overtservices

Hello, I have analyzed your job posted on freelancer and I’m interested to do your project as I have 6+ years of experience in “web development and designing” and I am well equipped in WORDPRESS, PHP, MYSQL, CSS3, Lagi

$8 USD / jam
(22 Ulasan)
0.0