Fix Missing required field in Google Webmaster Tools Structure

fix missing required fields

Simple Guide to Fix Missing required field in Google Webmaster Tools, Which uses Microdata Structure, Microformat structure, Scheme.org structure. This Structure to identify blog and it’s type like you are publishing a Review blog, Recipe tips,  News, Article, Webpages or any other kind or service you are providing.

Main issue and error that some of website owner are complaining about is error listed below.

Fix Missing required field in Google Webmaster Tools Structure

Fix Missing required field in Google Webmaster Tools

  • Error: At least one field must be setup for HatomEntry
  • Error: Missing required field “entry-title”
  • Error: Missing Required field “author”
  • Error: Missing Required hcard “author”
  • Missing: author
  • Missing: updated
  • Missing: name
  • Missing: entry-content

You can test your website at Google structure testing tool as we discuss in previous post How to Add Schema Markup for Navigation Menu.

To fix the issue of missing author make sure you have enabled the author from theme setting if enabled, for date published and updated date you need to generate from theme. use a function which I provide to you. It show to to do that in theme check for Inc folder and then Tamplate-tag.php in our theme you won’t get any problem since we have updated our data structure to Fix Missing required field in Google Webmaster Tools.

Just copy below code and paste it into function.php file make sure took the backup of theme and data.

if ( ! function_exists( 'bigrush_posted_on' ) ) :
/**
 * Prints HTML with meta information for the current post-date/time and author.
 */
function bigrush_posted_on() {
	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
		$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
	}

	$time_string = sprintf( $time_string,
		esc_attr( get_the_date( 'c' ) ),
		esc_html( get_the_date() ),
		esc_attr( get_the_modified_date( 'c' ) ),
		esc_html( get_the_modified_date() )
	);

	$posted_on = sprintf(
		esc_html_x( '%s', 'post date', 'bigrush' ),
		'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
	);

	$byline = sprintf(
		esc_html_x( '%s', 'post author', 'bigrush' ),
		'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
	);

	echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>'; // WPCS: XSS OK.

}
endif;

Now you just need to call above function in theme single post and page php files. In our theme go to Theme folder then template-tags folder then edit content-single.php and content-page.php now put code after title of post or after content of post this will resolve you issue from post and pages.

<?php bigrush_posted_on(); ?>

This function will call all the value stored like, Date Publish, Date modified, Author name.

Here How a hentry Type Microformat looks like

@type
hentry
entry-title
My Post Title
bookmark
https://www.insertcart.com/how-to-use-freecharge-coupon-code-online/
tag
http://www.todaydealsoffers.com/category/freecharge/
tag
http://www.todaydealsoffers.com/category/freecharge/
entry-content
Today we make a tutorial on how to use freecharge coupon code online on their website if you don’t have freecharge promo coupon code get it here for PayTm get coupon here. How to Use Freecharge…
updated
July 25, 2016
published
July 25, 2016
author
@type
hcard
url
http://www.todaydealsoffers.com/author/freedeals/
fn
freedeals
n
@type
n

How a Article type Schema structure looks like

@type
Article
@id
http://www.todaydealsoffers.com/how-to-use-freecharge-coupon-code-online/post-ratings-2985
headline
How to Use Freecharge Coupon Code Online
description
Today we make a tutorial on how to use freecharge coupon code online on their website if you don’t have freecharge promo coupon code get it here for PayTm get coupon here. How to Use Freecharge C…
datePublished
2016-07-25T11:13:44+00:00
name
How to Use Freecharge Coupon Code Online
dateModified
2016-07-25T11:13:44+00:00
url
http://www.todaydealsoffers.com/how-to-use-freecharge-coupon-code-online/
mainEntityOfPage
@type
WebPage
@id
http://www.todaydealsoffers.com/how-to-use-freecharge-coupon-code-online/
image
@type
ImageObject
name
How to Use Freecharge Coupon Code Online
url
http://www.todaydealsoffers.com/wp-content/uploads/2016/07/freecharge.png
width
@type
Intangible
name
1280
height
@type
Intangible
name
800
publisher
@type
Organization
name
TodayDealsOffers
logo
@type
ImageObject
url
http://www.todaydealsoffers.com/wp-content/uploads/2016/06/todaydealsoffers-e1468902824222.png
width
@type
Intangible
name
600
height
@type
Intangible
name
60
author
@type
Person
name
freedeals
aggregateRating
@type
AggregateRating
bestRating
5
worstRating
1
ratingValue
5
ratingCount
1
Sandy

Sandy

One thought on “Fix Missing required field in Google Webmaster Tools Structure

Leave a Reply

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

Name *
Email *