Adding extra fields
-
Hi I followed your guide for adding extra field (the salary field) and added multiple fields but i am stuck at a point where i need to add checkbox lists
Ex: Time Commitment:” Option 1, Option 2, Option 3
Below is the code which i am trying to do, can you point me in the right direction or tutorial if there is one?
Thanksfunction frontend_add_time_commitment_field( $fields ) { $fields['job']['time_commitment'] = array( 'label' => __( 'Time Commitment', 'job_manager' ), 'required' => false, 'type' => 'checkbox_list', 'value' => 'Full Time 40hrs/week', 'priority' => 9 ); return $fields; } function admin_add_time_commitment_date( $fields ) { $fields['_time_commitment'] = array( 'label' => __( 'Time Commitment', 'job_manager' ), 'type' => 'checkbox_list', 'value' => 'Full Time 40hrs/week', 'description' => '' ); return $fields; }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Adding extra fields’ is closed to new replies.