Google Structured data > hentry > Missing: "author" - "updated" (and sometimes "entry-title"

Hi Support

On my Site: https://www.ilsentierodeglignomi.it/
On Google Structured data > hentry (Markup: microformats.org) summary, I keep on finding the following errors:

  • Missing: author
  • Missing: updated

or

  • Missing: author
  • Missing: updated
  • Missing: entry-title

Thank You

Hi There,

You have to install and activate the child theme first.

After that adding this code under functions.php file locates in your child theme folder:

function add_suf_hatom_data($content) {
	$t      = get_the_modified_time('F jS, Y');
	$author = get_the_author();
	$title  = get_the_title();
	if (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');

Hope it helps :slight_smile:

1 Like

Hello

I’m currently using The SEO Framework, however I’m still getting the exact errors as the OP. Do I still need to install the markup snippet extension that comes with X and apply the above function?

Also, I’ve read that Yoast is unable to track the changes on pages since the new elements store everything in metadata. I’m not sure how it works, but will it have any adverse effect in SEO?

Thanks!

Hi There @ngrhd

Can you please try following the above workaround and it should resolve your issue.

With regard to your other concern, please refer to the following post (https://theme.co/apex/forum/t/new-cornerstone-headline-tag/12988/2?u=mldarshana).

Hope that helps.

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