kromix on "[Plugin: WP Job Manager] Submit resume doesn't work with new fields"

ساخت وبلاگ

I add this code in function.php

//ADD DATA SUBMIT JOB ADMIN // Add field to admin add_filter( 'resume_manager_resume_fields', 'wpjms_admin_resume_form_fields' ); function wpjms_admin_resume_form_fields( $fields ) { $fields['_luogo_nascita'] = array( 'label' => __( 'Luogo di nascita', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 2 ); $fields['_data_nascita'] = array( 'label' => __( 'Data di nascita', 'job_manager' ), 'type' => 'text', 'placeholder' => __( 'gg/mm/aaaa', 'job_manager' ), 'description' => '', 'priority' => 3 ); $fields['_prov_nascita'] = array( 'label' => __( 'Provincia di nascita', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 4 ); $fields['_luogo_residenza'] = array( 'label' => __( 'Luogo di residenza', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 6 ); $fields['_ind_residenza'] = array( 'label' => __( 'Indirizzo di residenza', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 5 ); $fields['_cod_fiscale'] = array( 'label' => __( 'Codice fiscale', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 7 ); $fields['_telefono_candidato'] = array( 'label' => __( 'Telefono ', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 9 ); $fields['_invalidita'] = array( 'label' => __( 'Percentuale invaliditá', 'job_manager' ), 'type' => 'text', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 11 ); $fields['_parenti'] = array( 'label' => __( 'Ha parenti giá alle dipendenze di Ascot?', 'job_manager' ), 'type' => 'select', 'placeholder' => __( '', 'job_manager' ), 'description' => '', 'priority' => 12 ); retu $fields; } // ADD DATA SUBMIT JOB FRONTEND add_filter( 'submit_resume_form_fields', 'wpjms_frontend_resume_form_fields' ); function wpjms_frontend_resume_form_fields( $fields ) { $fields['resume_fields']['_data_nascita'] = array( 'label' => __( 'Data di nascita', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => 'gg/mm/aaaa', 'priority' => 3 ); $fields['resume_fields']['_luogo_nascita'] = array( 'label' => __( 'Luogo di nascita', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 2 ); $fields['resume_fields']['_prov_nascita'] = array( 'label' => __( 'Provincia di nascita', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 4 ); $fields['resume_fields']['_ind_residenza'] = array( 'label' => __( 'Luogo di residenza', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 5 ); $fields['resume_fields']['_luogo_residenza'] = array( 'label' => __( 'Indirizzo di residenza', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 6 ); $fields['resume_fields']['_cod_fiscale'] = array( 'label' => __( 'Codice fiscale', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 7 ); $fields['resume_fields']['_telfono_candidato'] = array( 'label' => __( 'Telefono', 'job_manager' ), 'type' => 'text', 'required' => true, 'placeholder' => '', 'priority' => 9 ); $fields['resume_fields']['_invalidita'] = array( 'label' => __( 'Percentuale di invaliditá', 'job_manager' ), 'type' => 'text', 'required' => false, 'placeholder' => '', 'priority' => 11 ); $fields['resume_fields']['_parenti'] = array( 'label' => __( 'Ha Parenti giá alle dipendenze di ascot?', 'job_manager' ), 'type' => 'select', 'option' => array(key => yes, key2 => no,), 'required' => false, 'placeholder' => '', 'priority' => 12 ); retu $fields; }

And all fields appear in back end end front-end.

But when i add this
<?php echo get_post_meta( $post->ID, '_candidate_color', true ); ?>
in content-single-resume-php the method get doesn't work.

I have the field but is impossible to save the value on submit.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 46 تاريخ : سه شنبه 7 ارديبهشت 1395 ساعت: 23:59