• Resolved leeffc

    (@leeffc)


    Hi team,

    I have managed to hide many of the fields using the unset option (e.g. unset($fields[‘company’][‘company_name’]);), and would like to hide the location field but haven’t been able to make it work. I tried the following:

    unset($fields[‘company’][‘location’]);
    unset($fields[‘job’][‘location’]);

    But neither have worked. Is this something I can hide using this function, or do I have to do it another way?

    Many thanks in advance,

    Lee

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Hello @leeffc,

    Can you try the following?

    
    unset($fields[‘company’][‘company_location’]);
    unset($fields[‘job’][‘company_location’]);
    

    You may want to consider editing the template files if that doesn’t work. Check out the template overrides documentation here:

    https://wpjobmanager.com/document/template-overrides/

    Let me know how you get on!

    Thread Starter leeffc

    (@leeffc)

    Hi Stef,

    Thanks for the quick reply! I found it through trial and error. It was:

    unset($fields[‘job’][‘job_location’]);

    Thanks again!

    Plugin Contributor Stef (a11n)

    (@erania-pinnera)

    Oh, that is brilliant, @leeffc!

    I hope my input gave you some help to eventually figure it out 🙂

    Most of all, thanks for sharing your solution: this will help other users with the same problem in the future!

    I’m going to mark this thread as solved. If you have any further questions or need more help, you’re welcome to open another thread here. Cheers!

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

The topic ‘Hide the location field’ is closed to new replies.