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

Missing field "applicantLocationRequirements #2

Open
abhi28091989 opened this issue Aug 15, 2022 · 0 comments
Open

Missing field "applicantLocationRequirements #2

abhi28091989 opened this issue Aug 15, 2022 · 0 comments

Comments

@abhi28091989
Copy link

I am using WordPress Plugin https://wordpress.org/plugins/job-postings/
I got an Error in google search result Job posting

Missing field "applicantLocationRequirements"

Please find SS Here: https://snipboard.io/5soeRx.jpg
https://snipboard.io/D6Susx.jpg

I have coding exist in my plugin for "applicantLocationRequirements" field
`
if( $remote == 'on' && $remote_data ){
$remote_data = unserialize($remote_data);

                        if( count($remote_data) >= 1 && $remote_data[0]['type'] != '' && $remote_data[0]['name'] != '' ){

                            if(count($remote_data) == 1){
                                self::$json_ld['applicantLocationRequirements'] = json_decode(json_encode(array('@type' => $remote_data[0]['type'], 'name' => $remote_data[0]['name'])), FALSE);
                            }else{
                                $data_array = array();
                                foreach($remote_data as $data){
                                    $data_array[] = array('@type' => $data['type'], 'name' => $data['name']);
                                }
                                self::$json_ld['applicantLocationRequirements'] = json_decode(json_encode($data_array), FALSE);
                            }
                        }
                    }

                    if( $remote == 'on' ){
                        self::$json_ld['jobLocationType'] = "TELECOMMUTE";
                    }`

Please Suggest me Something i am really Fadeup with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant