• Resolved ekajuan

    (@ekajuan)


    I want to modified the job form. And I want to use input tag type number. I understand I can do this by adding a number-field.php in the wp-job-manager folder: templates/form-fields.

    But can I do it from the child theme and how?

    I have created childtheme/templates/form-fields and put the file in there, but no luck.

    I’m using this code on functions.php of the child theme to add my custom field.

    add_filter( 'submit_job_form_fields', 'frontend_harga' );
    
    function frontend_harga( $fields ) {
      $fields['job']['job_harga'] = array(
        'label'       => __( 'Harga (Rp)', 'job_manager' ),
        'type'        => 'number',
        'required'    => true,
        'placeholder' => 'Misal: 20000',
        'priority'    => 1
      );
      return $fields;
    }

    https://wordpress.org/plugins/wp-job-manager/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Number field’ is closed to new replies.