Change Location Field to Select Input of States
-
Hey there, thanks for the great plugin! I had a quick question about how to change the job_location field to be a select drop down box of states. After reviewing the documentation, here’s what I came up with
$fields['job']['job_location'] = array( 'label' => __( 'Job Location', 'job_manager' ), 'type' => 'select', 'required' => true, 'options' => array('', 'Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'DC', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Carolina', 'North Dakota', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming', 'Out of US'), 'placeholder' => '', 'priority' => 3 );
Unfortunately, the data is being saved by the item number instead of the state name. So for example, Alabama shows a “1” instead of “Alabama” wherever the location for that job is shown.
I’d ultimately like users to be able to search by this state location when filtering through resumes. Help please? Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Change Location Field to Select Input of States’ is closed to new replies.