I got missing author and missing update errors

Hello there,
When I checked Structured data in Webmaster tools, I found two errors: missing author and missing update.

I had installed other theme then there was no errors. After installation of X theme, I’m getting errors in webmaster tools.
Screenshots below:


How to fix it? I need permanent solution.

Thank you.

Hi There,

I do see this often, and the solution varies depending on which part triggers it. But for the meantime, please check this thread https://theme.co/apex/forum/t/google-structured-data-hentry-missing-author-updated-and-sometimes-entry-title/17593/3 and apply the recommended solution.

Thanks!

Hi, I have just installed X-child theme and added the suggested code in function.php file, but, it’s not working.
Thank you

Hi,

Please change the code you have added to this.

function add_suf_hatom_data($content) {
	$t      = get_the_modified_time('F jS, Y');
	$author = get_the_author();
	$title  = get_the_title();
	
	if (is_page() || is_home() || is_singular() || is_archive() ) {
		$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
	}
	
	return $content;
}
add_filter('the_content', 'add_suf_hatom_data');
add_filter('the_excerpt', 'add_suf_hatom_data');

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.