Google Search Console Error

#19674
  • Resolved Chuks21
    Rank Math free

    Hi,
    I started using Rankmath few weeks ago and i”m using job posting rich snippet. Current i have over 5000 job posts already published on my site. This morning i got these errors in my Google search console.

    Missing field “hiringOrganization”
    Missing field “title”
    Missing field “jobLocation”
    Missing field “description”
    Missing field “datePosted”
    Missing field “jobLocation.address”

    Please what will i do to correct all these errors. I cant start going inside each of the post and start setting it individual. is there any default setting that will automatic set everything at once?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Most of the missing values that are reporting errors should be unique for each snippet but most of this data is published within the main content of the job post. This makes it difficult for us to help in extracting the data and assigning it to the snippet but this would have been relatively easier if you had some custom fields on the posts.
    At the moment, you can set default values for the missing data using the following code in your theme’s functions.php file:

    /**
     * Filter to modify Job Posting Schema with default data
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_jobposting_entity', function( $entity ) {
        global $post;
        $entity['hiringOrganization']['name'] = "Default name here";
        $entity['title'] = $post->post_title;
        $entity['jobLocation']['address'] = "Default address here";
        $entity['description'] = get_the_content();
        $entity['datePosted'] =  get_the_time(get_option('date_format'), $post->ID);
        return $entity;
    });

    Re-saving each post should also automatically populate some of these values.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Google Search Console Error’ is closed to new replies.