Extra profile field as select box?

Question

I want to add some more profile fields to WordPress. It works fine with normal text box:

<input type="text" name="gender" id="gender" value="<?php echo esc_attr( get_the_author_meta( 'gender', $user->ID ) ); ?>" class="regular-text" /><br />

But of cause I don’t want my users to enter “male” or “female”. So I need a select box! 🙂

May you please help me how I have to change the code above to get a select box?!

Thanks a lot!

0
, Philipp 11 years 2011-11-20T13:11:37-05:00 0 Answers 65 views 0

Leave an answer

Browse
Browse