Skip to content

Missing field "applicantLocationRequirements #2

@abhi28091989

Description

@abhi28091989

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions