• Resolved coxinha

    (@coxinha)


    Dear all,

    how can I post a job with more than on job type i.e. graduate AND fulltime?

    Maybe my question is a bit dumb. I’ve tried now serveral ways, read the whole documentation. But I didn’t find an answer.

    So I hope you can help me.

    Thanks in advance!

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

    (@nsinelnikov)

    Hi @coxinha

    Unfortunately, there is possible to use only 1 job type by default. But you could customize some templates and there will be possible to make that: https://www.screencast.com/t/4KyF4XF4

    More details on how you may customize template via your theme here https://docs.jobboardwp.com/article/1570-templates-structure

    Let me know if that works for you,
    Best Regards!

    Thread Starter coxinha

    (@coxinha)

    Dear @nsinelnikov,

    thanks a lot for your super-quick reply and helpful instructions.

    For the submission as a user it works like a spell.

    But unfortunately not from the wp-admin.

    I guess that’s another template. Could you please help me also?

    Thanks again and many regards!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @coxinha

    Please try this snippet for making the multiple selectbox for the job type field in wp-admin:

    function jb_my_custom_job_details_fields( $job_details_fields ) {
        foreach ( $job_details_fields as &$field ) {
            if ( isset( $field['id'] ) && 'jb-job-type' === $field['id'] ) {
                 $field['multi'] = true;
            }
        }
        return $job_details_fields;
    }
    add_filter( 'jb_job_details_metabox_fields', 'jb_my_custom_job_details_fields', 10, 1 );

    Let me know if that works,
    Best Regards!

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @coxinha

    Just for clarifying you may insert this PHP snippet to your functions.php file inside theme/child-theme.

    Best Regards!

    Thread Starter coxinha

    (@coxinha)

    Hi @nsinelnikov

    your support is awesome!!

    Sorry but I have to reopen this topic:

    In wp-admin I can choose now the multiple selection but it doesn’t save.

    Any ideas?

    Plugin Author Mykyta Synelnikov

    (@nsinelnikov)

    Hi @coxinha

    Please try to edit this line.
    wp-content/plugins/jobboardwp/includes/admin/calss-metabox.php :: line 235

    Field sanitizing doesn’t apply for array values for now. But if that works we will add a fix for sanitizing in the next version.

    2022-01-10_17-44-35

    Code was:

    case 'absint':
       $v = absint( $v );
       break;

    Necessary code:

    case 'absint':
        if ( is_array( $v ) ) {
    	$v = array_map( 'absint', $v );
        } else {
    	$v = absint( $v );
        }
        break;

    Let me know if that works,
    Best Regards!

    Thread Starter coxinha

    (@coxinha)

    Hi @nsinelnikov

    now it’s working properly! ??

    Thanks a lot and have a nice one.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to post a job with more than one job type?’ is closed to new replies.