Course-type structured data error

#676710
  • Resolved hidraliso brasil
    Rank Math pro

    My google search console is showing a critical error. I’m using structured data of type course.

    The errors displayed are:

    The “offers” field was not found

    The “Hascourseintance” field was not found

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello, we apologize for the inconvenience you are facing with the structured data of type course in your Google Search Console.

    The error messages you are seeing, “The ‘offers’ field was not found” and “The ‘Hascourseintance’ field was not found,” indicate that there are missing fields in the structured data for your course.

    To resolve this issue, you can ensure that the necessary fields are included in the Course Schema. Specifically, you need to include the “offers” field and the “hasCourseInstance” field in your structured data.

    If you are using Rank Math PRO, you can add the necessary fields by editing the Course Schema settings. You can also verify that the Schema markup for your courses includes all the required fields.

    If you need further assistance with resolving this issue, please feel free to reach out to our support team directly from here, and we’re always here to help.

    Sources:
    JobPosting Schema Type » Rank Math
    Google Search Console Missing Field Warning » Rank Math
    Course Schema Type » Rank Math
    Resolving Rank Math Schema Markup Related Issues

    I couldn’t solve my problem with this answer.

    I would like to know how to solve these errors that appear in the google search console

    Hello,

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

    We’ve checked your page with Google’s Rich Results test tool but were unable to detect any Course schema there. Please check the screenshot in the sensitive data section for your reference.

    Can you please confirm if have removed the course schema from this page?

    Looking forward to helping you.

    Thank you.

    true, I changed it because I was getting an error. Sorry

    However, you can check the error I reported in several other course articles:

    https://hidraliso-loja.com.br/curso-salsicha-cortes/
    https://hidraliso-loja.com.br/curso-de-nago-da-trancas-dassa/

    I have more than 10 articles with this error.

    I just want to know how to solve the errors I mentioned.

    Hello,

    Thank you for your patience and for sharing the affected URLs.

    The errors reported in the Rich Results tests are due to Google’s recent update with the Course Schema requiring those fields:
    https://developers.google.com/search/blog/2023/11/new-course-info-markup

    However, we have already reported this to our development team to update our predefined schema for those properties.

    We would really appreciate your kind patience regarding this matter.

    Meanwhile, you can use the following filter on your website to add those missing properties on your website and fix the errors:

    add_filter( "rank_math/snippet/rich_snippet_course_entity", function( $entity ) {
        // Offer
        $entity['offers']['@type'] = 'Offer';
        $entity['offers']['category'] = 'Paid';
        $entity['offers']['priceCurrency'] = 'EUR';
        $entity['offers']['price'] = 10.99;
    
        // CourseInstance
        $entity['hasCourseInstance']['@type'] = 'CourseInstance';
        $entity['hasCourseInstance']['courseMode'] = 'Onsite';
        $entity['hasCourseInstance']['location'] = 'UK';
        $entity['hasCourseInstance']['courseSchedule']['@type'] = 'Schedule';
        $entity['hasCourseInstance']['courseSchedule']['duration'] = 'PT5H';
        $entity['hasCourseInstance']['courseSchedule']['repeatCount'] = '4';
        $entity['hasCourseInstance']['courseSchedule']['repeatFrequency'] = 'Weekly';
        $entity['hasCourseInstance']['courseSchedule']['startDate'] = '2023-08-01';
        $entity['hasCourseInstance']['courseSchedule']['endDate'] = '2023-8-31';
        $entity['hasCourseInstance']['instructor']['@type'] = 'Person';
        $entity['hasCourseInstance']['instructor']['name'] = 'Kai S.';
        $entity['hasCourseInstance']['instructor']['description'] = 'Professor at X-University';
        $entity['hasCourseInstance']['instructor']['image'] = 'http://examplePerson.jpg';
    
        return $entity;
    });

    Here’s how you can add the filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Please make sure to change the properties according to your website.

    Hope that helps.

    Thanks

    Hello,

    We are glad that helped.

    Please feel free to reach out to us again in case you need any other assistance.

    We are here to help.

    Thank you.

    Hello,

    We have recently released a Beta version of the plugin that adds the fields where you can fill in those required data to fix the errors in GSC.

    Please try updating to the beta version of Rank Math by following this guide: https://rankmath.com/kb/version-control/#beta-updates

    If you don’t see an update available, please go to Rank Math > Status & Tools > Database Tools > Remove Rank Math Transients > Remove transients. Then, clear your caches, server, and WordPress and check again.

    You can disable the Beta updates once you update to the latest version

    Hope that helps.

    Thank you.

    thanks!

    Hello,

    We are glad to know that this issue has been resolved. Thank you for letting us know.

    This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Course-type structured data error’ is closed to new replies.