WordPress: How to Fix Missing required field entry-title, Update, hCard Error in Google Structured Data tool.

Fix Missing required field entry-title, Update, hCard Error
Recently when I tested one of my WordPress weblogs via Google Structured Data testing tools, I got the Following errors:

  • Error: Missing required field “entry-title”.
  • Error: Missing required field “updated”.
  • Error: Missing required hCard “author”.

It was strange, as Everything was already described in my WordPress theme codes, but still, I was getting the error and I had to resolve the problem.

What I noticed that it was described in the theme but not as Google wanted them to be. So, Here in this article, I’ll try to help out each and everyone in a simple way about how I resolved this issue.

Fixing “Error: Missing required field entry-title.”

In your wordpress theme’s single.php file. Here look for the the_title() function called. Let say this function is called in following html format.

In this above code snippet entry-title class is missing which is required according to the Google Structured Data testing tools. So, need to add entry-title class to fix “Error: Missing required field entry-title” as below mentioned.

Fixing “Error: Missing required field updated.”

To fix this issue in single.php file look for the_time() function. Let say the_time() function is called in following html format.

In this above code snippet date updated class is missing which is required according to Google Structured tools. So, need to add this class to fix this issue.

Fixing “Error: Missing required hCard author.”

In single.php file look for the_author() function. It may be called in following html format.

Here to fix this issue we need to add vcard author class as below described.

Now all is done. After this modification, these errors will be resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *