• Resolved jagrutiparihar1712

    (@jagrutiparihar1712)


    Dear Support Team,

    I am reaching out to request guidance on removing location fields from the WP Job Manager plugin on my website. While the plugin serves our purposes well in most aspects, we find the location fields unnecessary for our specific use case.

    Could you please provide step-by-step instructions or any documentation available on how to remove these location fields without disrupting the functionality of the plugin?

    Best regards,
    Jagruti

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • @agrutiparihar1712

    to remove the location field of the job submission flow use this snippet here

    add_filter( 'submit_job_form_fields', 'custom_submit_job_form_fields_dm' );
    
    function custom_submit_job_form_fields_dm( $fields ) {
        // in this example, we remove the job_tags field
        unset($fields['job']['job_tags']);
    
        // And return the modified fields
        return $fields;
    }

    instead of job_tags use the meta key of the location field. By default htis should be job_location

    To remove the location field of the job list and the single job you need to override the following templates and upload them to the following directory

    content-single-job_listing-meta.php
    remove line 37
    and upload the file to the following direction on your server
    yourtheme/job_manager/content-single-job_listing-meta.php

    content-job_listing.php
    remove line 31-33
    and upload the file to the following direction on your server
    yourtheme/job_manager/content-job_listing.php

    These are the standard WPJM templates, maybe your theme is using its own, so you need to check this

    Thread Starter jagrutiparihar1712

    (@jagrutiparihar1712)

    It’s work
    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove location field form job posting’ is closed to new replies.