[Plugin: Front-end Editor] Users in editable select dropdown
-
Hi there
Great plugin!
Is there an easier way to do the below?
Any help would be greatly appreciated, thank you
$userargs = array( 'exclude' => 1, ); $fvusers = get_users($userargs); foreach ($fvusers as $user) { $myusriddd[] = $user->ID; $myusrndd[] = $user->display_name; } editable_post_meta( $mycustid, 'assigned_rep_code', array( 'type' => 'select', 'values' => array( $myusriddd[0] => $myusrndd[0], $myusriddd[1] => $myusrndd[1], $myusriddd[2] => $myusrndd[2], $myusriddd[3] => $myusrndd[3], $myusriddd[4] => $myusrndd[4], $myusriddd[5] => $myusrndd[5], $myusriddd[6] => $myusrndd[6], $myusriddd[7] => $myusrndd[7], $myusriddd[8] => $myusrndd[8], $myusriddd[9] => $myusrndd[9], $myusriddd[10] => $myusrndd[10], $myusriddd[11] => $myusrndd[11], $myusriddd[12] => $myusrndd[12], $myusriddd[13] => $myusrndd[13], $myusriddd[14] => $myusrndd[14], $myusriddd[15] => $myusrndd[15], $myusriddd[16] => $myusrndd[16], $myusriddd[17] => $myusrndd[17], $myusriddd[18] => $myusrndd[18], $myusriddd[19] => $myusrndd[19], $myusriddd[20] => $myusrndd[20], $myusriddd[21] => $myusrndd[21], $myusriddd[22] => $myusrndd[22], $myusriddd[23] => $myusrndd[23], $myusriddd[24] => $myusrndd[24], $myusriddd[25] => $myusrndd[25], $myusriddd[26] => $myusrndd[26], $myusriddd[27] => $myusrndd[27], $myusriddd[28] => $myusrndd[28], $myusriddd[29] => $myusrndd[29], ) ) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[Plugin: Front-end Editor] Users in editable select dropdown’ is closed to new replies.