Title: Company fields
Last modified: August 22, 2016

---

# Company fields

 *  Resolved [GabrielStream](https://wordpress.org/support/users/gabrielstream/)
 * (@gabrielstream)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/)
 * Hi there !
 * I need some help as I’m trying to remove all company fields and change some job
   fields. I added this code to the functions.php :
 * add_filter( ‘submit_job_form_fields’, ‘custom_submit_job_form_fields’ );
    function
   custom_submit_job_form_fields( $fields ) { $fields[‘job’][‘job_location’][‘label’]
   = “Lieu de la mission”; $fields[‘job’][‘job_location’][‘description’] = “Laissez
   en blanc si le lieu importe peu”; $fields[‘job’][‘job_location’][‘placeholder’]
   = “p.ex. Paris”; $fields[‘job’][‘job_type’][‘label’] = “Type de mission”; $fields[‘
   job’][‘job_category’][‘label’] = “Region”; $fields[‘job’][‘application’][‘required’]
   = “false”; $fields[‘job’][‘application’][‘required’] = “false”; unset( $fields[‘
   company’]); return $fields; } And then theirs an error message from WP :
 * “Warning: include(/homepages/43/d543071460/htdocs/wp-content/plugins/wp-job-manager-
   locations//templates/form-fields/-field.php): failed to open stream: No such 
   file or directory in /homepages/43/d543071460/htdocs/wp-content/plugins/wp-job-
   manager/wp-job-manager-template.php on line 26
 * Warning: include(): Failed opening ‘/homepages/43/d543071460/htdocs/wp-content/
   plugins/wp-job-manager-locations//templates/form-fields/-field.php’ for inclusion(
   include_path=’.:/usr/lib/php5.4′) in /homepages/43/d543071460/htdocs/wp-content/
   plugins/wp-job-manager/wp-job-manager-template.php on line 26″
 * :/ What can I do ?
 * [https://wordpress.org/plugins/wp-job-manager/](https://wordpress.org/plugins/wp-job-manager/)

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

 *  [Scott Basgaard](https://wordpress.org/support/users/scottbasgaard/)
 * (@scottbasgaard)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5499951)
 * Sounds like you haven’t completely uploaded the plugin.
 * I would re-download WP Job Manager and upload it to your WordPress install as
   a fresh install.
 * Hope this helps!
 * Kind Regards,
    Scott
 *  Thread Starter [GabrielStream](https://wordpress.org/support/users/gabrielstream/)
 * (@gabrielstream)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5499962)
 * Just re-downloaded wp job manager and re-installed it but it’s still not working…
 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5499975)
 * Remove this line, it doesn’t exist:
 *     ```
       $fields['job']['job_type']['label'] = "Type de mission";
       ```
   
 *  Thread Starter [GabrielStream](https://wordpress.org/support/users/gabrielstream/)
 * (@gabrielstream)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500018)
 * On submit_job_form we’ve got that :
 * _ ‘job\_type’ => array(
    ‘label’ => \_\_( ‘Job type’, ‘wp-job-manager’ ), ‘type’
   => ‘term-select’, ‘required’ => true, ‘placeholder’ => ”, ‘priority’ => 3, ‘default’
   => ‘full-time’, ‘taxonomy’ => ‘job\_listing\_type’ ),
 * So on the filter the line
    _$fields[‘job’][‘job\_type’][‘label’] = “Type de mission”;_
   is to change ”Job type” to ”Type de mission”.
 * And that works just fine. But I tried what you suggested Mike and even after 
   deleting this line, I still got the error message :-/
 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500021)
 * Maybe its $fields[‘job’][‘job_category’][‘label’] = “Region”; then.
 * One of the rules you’re adding is creating a new field. A field without a type,
   hence the error.
 *  Thread Starter [GabrielStream](https://wordpress.org/support/users/gabrielstream/)
 * (@gabrielstream)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500022)
 * Just tried adding just that to functions.php :
    _add\_filter( ‘submit\_job\_form\
   _fields’, ‘custom\_submit\_job\_form\_fields’ );_
 * function custom_submit_job_form_fields( $fields ) {
    unset( $fields[‘company’]);
   return $fields; }
 * And still got the same error message … Just can’t figure it out …
 *  [Scott Basgaard](https://wordpress.org/support/users/scottbasgaard/)
 * (@scottbasgaard)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500025)
 * Apologize for the confusion earlier and Mike is correct.
 * This won’t happen on a clean install or if you unset an entire field like that.
 * I’m assuming it’s either caching related as to why you still see the error with
   the latest test or you have done something else somewhere.
 * If you look at what would cause the issue it’s adding a field that doesn’t have
   a type like Mike suggested:
 * [https://github.com/mikejolley/WP-Job-Manager/blob/b5285d4cfb6088e2ee72a3f7676289fd2ee799c2/templates/job-submit.php#L26](https://github.com/mikejolley/WP-Job-Manager/blob/b5285d4cfb6088e2ee72a3f7676289fd2ee799c2/templates/job-submit.php#L26)
 * If you still see this on a clean install I can recommend a clean install and 
   then adding fields 1 by 1 until you pinpoint which one you’ve added that doesn’t
   have a type thus throwing the warning / error here.
 * Hope this helps!
 * Kind Regards,
    Scott
 *  Plugin Author [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500098)
 * Do you maybe have any other form-modification code, a form field editor plugin
   running, or even a theme which modifies fields?

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

The topic ‘Company fields’ is closed to new replies.

 * ![](https://ps.w.org/wp-job-manager/assets/icon-256x256.gif?rev=2975257)
 * [WP Job Manager](https://wordpress.org/plugins/wp-job-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-job-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-job-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-job-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-job-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-job-manager/reviews/)

## Tags

 * [company](https://wordpress.org/support/topic-tag/company/)

 * 8 replies
 * 3 participants
 * Last reply from: [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/company-fields-1/#post-5500098)
 * Status: resolved