Problem with saving and viewing resume manager custom fields
-
Hi! great plug-in, great work!
I have also purchsed the custom-filed plugin which i didn’t understand it dosen’t support resume manger for also adding custom fields.
Following the tutorials i tried to add a new custom field to the resume manager, it dipslays when you submit a new resume but it doesn;t save te meta data, i can’t see the meta data at the admin resume editor so i thik tha it might not save it as well
I used the following the code at my themes functions.php to add a salary field to the resume manager:
// Add your own function to filter the fields add_filter( 'submit_resume_form_fields', 'frontend_add_salary_field' ); function frontend_add_salary_field( $fields ) { $fields['resume_fields']['job_salary'] = array( 'label' => __( 'Salary', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 13 ); return $fields; } add_action( 'resume_manager_update_resume_data', 'frontend_add_salary_field_save', 10, 2 ); function frontend_add_salary_field_save( $resume_id, $values ) { update_post_meta( $resume_id, '_job_salary', $values['resume_fields']['job_salary'] ); } add_filter( 'resume_manager_listing_data_fields', 'admin_add_salary_field' ); function admin_add_salary_field( $fields ) { $fields['resume_fields']['job_salary'] = array( 'label' => __( 'Salary', 'job_manager' ), 'type' => 'text', 'placeholder' => '', 'description' => '' ); return $fields; }
…Without success, im not a programer so any help would be useful.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem with saving and viewing resume manager custom fields’ is closed to new replies.