• Resolved felipeolivozn

    (@felipeolivozn)


    Hola, habrá alguna manera de agregar el campo salario?

    Hello, will there be a way to add the salary field?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @felipeolivozn

    Sorry for the delay,
    You may use the job-submission.php file and customize the template through theme/child-theme.
    https://docs.jobboardwp.com/article/1570-templates-structure

    Please share this Gist with your developer https://gist.github.com/nikitasinelnikov/1f50cc41a745409aef8fff074e7d661c

    Let me know if you have other questions,
    Best Regards!

    @nsinelnikov

    Can you elaborate on exactly how to do this?

    I also need to add a category for compensation, with multiple salary options to be selected on the form.

    Compensation < main category
    entry level
    minimum wage
    salary, etc.

    And one for Experience < main category
    0-2 years
    5-10 years, etc.

    That link goes to a page with the absolute bare minimum of explanation. So what needs to be added or changed to add a new field, where does it need to be added, and where do we add the new categories for the new parent category?

    Thanks.

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @delanataylor

    Please share this Gist with your developer https://gist.github.com/nikitasinelnikov/1f50cc41a745409aef8fff074e7d661c

    There is a code that provides the functionality for adding custom fields to the company details and to the job details field sections.

    As I understand that “Compensation” and “Experience” are multiselect custom fields.
    So please copy wp-content/plugins/jobboardwp/templates/job-submission.php template file to the wp-content/themes/{child-theme-path}/jobboardwp/job-submission.php path.

    After that please edit this copied file. The example from Gist but with your fields

    /* insert after this line:223 in job-submission.php*/
    
    $sections['job-details']['fields'][] = [
    	'type'      => 'select',
    	'label'     => 'Compensation',
    	'id'        => 'compensation',
            'options'   => array(
                'entry' => 'entry level',
                'minimum' => 'minimum wage',
                'salary' => 'salary',
             ),
    	'required'  => true, // set true if required
    	'value'     => {see Gist how to properly get the value for your custom field},
    ];
    $sections['job-details']['fields'][] = [
    	'type'      => 'select',
    	'label'     => 'Experience',
    	'id'        => 'experience',
            'options'   => array(
                'low' => '0-2 years',
                'medium' => '5-10 years',
             ),
    	'required'  => true, // set true if required
    	'value'     => {see Gist how to properly get the value for your custom field},
    ];

    Discuss more specific location, display, and tasks with your developer. He/she will understand more about how to do it. I hope this helped.

    Let me know if you have other questions,
    Best Regards!

    Thanks! I found that and changed the original job_type segment to remove remote, onsite, etc. and numbered them 0, 1, 2, 3, etc. And for the location selection I just removed the 0 from it so it did not reference 0 option above.

    That seems to have worked out.

    Thank you!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @felipeolivozn

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

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