missing field “location”

  • I don’t see any way to add a “location” schema field to events. Google is marking all events pages with schema errors due to this missing field.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

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

    Upon checking your page here, I was able to replicate the issue with the following errors:

    Missing field “location”
    Missing field “eventAttendanceMode” (optional)
    Missing field “offers” (optional)
    Missing field “organizer” (optional)
    Missing field “eventStatus” (optional)

    The errors in the Event schema which Rank Math is adding are coming up because you are not adding an address and other data in the backend. Please add value in all the fields and that should fix the issue.

    Please check out more details regarding these fields here: https://rankmath.com/kb/event-schema/

    Hope this is helpful. We really look forward to assisting you more.

    Thank you.

    The address is the same for all events, and we have over 10,000 of them. In fact, these are online events so there isn’t actually an address.

    Is there any way to automatically set the location as virtual, like this: https://developers.google.com/search/docs/data-types/event#online-event

    It seems like this should be something we can set for the event content type.


    Thank you for the follow-up.

    You can set the Event Attendance Mode to Online to achieve the schema you preferred


    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    The functionality you’ve described doesn’t seem to be working, please see this video:


    Also, even if we get this working, updating 10K+ pages is many hours of work. Isn’t there a way we can set a default to “online” globally?


    Thank you for that screencast.

    That is not the expected behavior of our Schema generator. I’m assuming this might be a cause of a plugin or your active theme conflict. To determine that, you can follow our guide using the Health Check Plugin.

    In this case, you can use and modify this filter to add the missing entity for your schema to all of your pages:

    This should be pasted in your theme’s functions.php file.

    I hope that helps. Thank you, and looking forward to your update.

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

You must be logged in to reply to this ticket.