How to Fix Missing homeLocation for Person Schema
When you are seeing items with errors in Google Search Console Structured Data report for itemtype Person Schema Markup, that means you need to find a way to fix that issue to have a perfectly Structured WordPress site.
Because we need to keep in mind that Google is not the only search engine that can understand Schema Markup.
Search Console Report Shows This
However, fixing the issue can be easy, having said that, finding the unique techniques required may not be, this is due to different WordPress setups that use different techniques for inserting Schema Markup.
For example: your WordPress site may be using JSON-LD format, or, schema.org Microdata format. You could be using plugins, or, you could be using a Theme that inserts Person itemtype, or even, you could be using Person itemtype for forum members, or comment leavers for your WordPress Blog posts.
That is Why Its Smart to Find a Long Term Solution
A solution that will not only fix the errors shown in Google Structured Data items with errors for Person data type, but do so make sure that they don’t come back in the future.
First of all, I got some sample codes for WordPress CMS built sites that you may just grab and modify according to your own WordPress requirements. Or simply tweak the sample PHP codes if you are using other types of Content Management Systems like Magento or Joomla.
Sample Codes as shown in the Video Tutorial can be downloaded here
Solution for WordPress Comments That Use Person Itemtype
If your WordPress site uses
For commenting system, then you may consider this video lesson coupled with sample codes and use RankYa Comment Schema Plugin (.zip version) that handles the missing homeLocation issues as detailed in this video lesson:
I’ve worked very hard to find this solution for my own WordPress comment section, because to automate this process I had to create my own WordPress plugin that asks the commenter for Country location information when they leave comments which in-turn fixes homeLocation items with errors as shown in Google Search Console.
If your WordPress site is also using Person itemtype for its comment section as outlined in the above video session, then you will need to find ways to insert the outlined piece of information so that Google Search Console doesn’t complain.