Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

applicantLocationRequirements schema now required for Remote (TELECOMMUTE) jobs #2305

Open
Strijdhagen opened this issue Aug 1, 2022 · 18 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Type] Enhancement

Comments

@Strijdhagen
Copy link

Google just pushed an update that delists jobs when TELECOMMUTE and not including the applicantLocationRequirements schema.
Would be great if we could implement this as a field!

@bobmatyas
Copy link
Contributor

Another request for this on: 5509949-zen

This issue is coming up due to a change on Google's end as explained here: https://developers.google.com/search/docs/advanced/structured-data/job-posting

Google now expects something like:

"applicantLocationRequirements": [{
    "@type": "State",
    "name": "Michigan, USA"
 },{
    "@type": "State",
    "name": "Texas, USA"
 }],

in the schema to indicate where work can be performed.

@cena
Copy link

cena commented Sep 16, 2022

5562974-zen

Recieving Critical Error "missing field applicantLocationRequirements"

Would you consider including "applicantLocationRequirements" in the job schema for remote jobs. Potentially including a field to list allowed countries.

@github-actions
Copy link

github-actions bot commented Sep 16, 2022

Support References

This comment is automatically generated. Please do not edit it.

  • 5509949-zen
  • 5562974-zen
  • 5684222-zen
  • 6169128-zen
  • 7122077-zen
  • 7179203-zen

@bobmatyas
Copy link
Contributor

Another request on 5684222-zen

@bobmatyas
Copy link
Contributor

@bharathganji
Copy link

bharathganji commented Mar 25, 2023

hi team, i am getting error, any plan in updating code according to schema..? , pls someone reply

or is there any alternate solutions i can use as remedy for now..!

image

@bobmatyas
Copy link
Contributor

Another request on 6169128-zen

@bobmatyas
Copy link
Contributor

@theninabird
Copy link

We are also running into this issue and would be interested in an update or a fix.

@theninabird
Copy link

theninabird commented Jul 11, 2023

For anyone else running into this, you can modify the structured data in your own theme/plugin by using the wpjm_get_job_listing_structured_data filter.

add_filter( 'wpjm_get_job_listing_structured_data', 'modify_job_listing_structured_data', 10, 2 );
function modify_job_listing_structured_data( $data, $post ) {
  if ( $post->_remote_position ) {
    $data['applicantLocationRequirements']['@type'] = 'Country';
    $data['applicantLocationRequirements']['name'] = 'USA';
  }
  
  return $data;
}

@yscik
Copy link
Contributor

yscik commented Oct 5, 2023

7122077-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label Oct 5, 2023
@dericleeyy
Copy link

7179203-zen

@promptpress
Copy link

+1 for us - would be great to fix it

@promptpress
Copy link

For anyone else running into this, you can modify the structured data in your own theme/plugin by using the wpjm_get_job_listing_structured_data filter.

add_filter( 'wpjm_get_job_listing_structured_data', 'modify_job_listing_structured_data', 10, 2 );
function modify_job_listing_structured_data( $data, $post ) {
  if ( $post->_remote_position ) {
    $data['applicantLocationRequirements']['@type'] = 'Country';
    $data['applicantLocationRequirements']['name'] = 'USA';
  }
  
  return $data;
}

As I am not a theme or plugin developer - where exactly can I add this code snippet? We are using the Cariera theme.

@theninabird
Copy link

As I am not a theme or plugin developer - where exactly can I add this code snippet? We are using the Cariera theme.

You would need to create a child theme which unfortunately does require some coding. First you need to be able to access your site's files on the server via SFTP, and then you need to follow the instructions in the provided link and create some new files on the server. The code snippet would go inside of the functions.php file.

@yscik
Copy link
Contributor

yscik commented Nov 14, 2023

It's also possible to add the snippet without additional coding using the Code Snippets plugin

@promptpress
Copy link

@theninabird @yscik many thanks to both of you! We had a child theme already - I was only not sure if the functions.php file was the right one. We made it work and Google already indexed the job postings without any errors.

@Datatech-AK
Copy link

I'm actually quite astonished that WP Job Manager has been silently excluding telecommuting positions from Google Jobs by omitting this required field for the past two years. Compatibility with Google Jobs is one of the selling features on WPJM's market page, and this isn't a small issue. It should definitely be a team priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Type] Enhancement
Projects
None yet
Development

No branches or pull requests

9 participants