Viewing 8 replies - 1 through 8 (of 8 total)
  • Hey there,

    Take a look at Mike’s solution here:
    https://wordpress.org/support/topic/remove-location-in-job-submit-form-and-in-the-backend?replies=13

    Hope this helps!

    Cheers,
    Scott

    Thread Starter James Hunt

    (@bonkerz)

    Hi Scott, appreciate your quick response, I tried that first, but I found it to only be half an answer, and not very well explained by the user (I also tried to contact him directly before posting here).

    So I wanted to ask again if there was an easy way to do this

    Thanks

    This will do both front and backend:

    add_filter( 'job_manager_job_listing_data_fields', 'custom_resume_manager_resume_fields' );
    function custom_resume_manager_resume_fields( $fields ) {
        unset( $fields['_job_location'] );
        return $fields;
    }
    
    add_filter( 'submit_job_form_fields', 'custom_hide_resume_form_fields' );
    function custom_hide_resume_form_fields( $fields ) {
        unset( $fields['job']['job_location'] );
        return $fields;
    }

    Try adding that to your theme’s functions.php template file.

    Cheers,
    Scott

    Thread Starter James Hunt

    (@bonkerz)

    Ah awesome, thanks Scott, that worked perfectly.

    However I added a new job, and as the location wasn’t set, it just defaults to “Anywhere” when displaying the jobs using [jobs] shortcode – screenshot http://take.ms/OGwlF

    Is there a way to edit the location information from the job list display too?

    Many thanks

    Plugin Author Mike Jolley

    (@mikejolley)

    You could either change the template file that outputs that data, or hide it with CSS. Both would work in your case. Anywhere = blank location field.

    Thread Starter James Hunt

    (@bonkerz)

    Thanks Mike

    Would you be able to tell me which template file controls the output of the [jobs] shortcode?

    Thread Starter James Hunt

    (@bonkerz)

    For anyone else – the file content-job_listing.php controls the output listing of [jobs]

    Plugin Author Mike Jolley

    (@mikejolley)

    Correct 🙂

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Removing location from WP Job Manager’ is closed to new replies.