This topic has 5 replies, 4 voices, and was last updated 6 years, 9 months ago ago by Rose Tyler
Hello,
We have problems showing up in google webmaster tools.
When I go to Structured Data > hentry (markup: microformats.org) I get 387 errors mainly giving the same error:
Missing: author
Missing: entry-title
Missing: updated
I have read a lot about this in forums, and there seems to be something missing in single.php file and maybe page.php file.
Here is one things I have read:
https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone/page/2
Do you have a fix for this?
Thanks!
Here is another link: http://fivera.net/hatom-feed-hatom-entry-error-wordpress-solution/
Hello,
Could you please show a screenshot where you see errors?
Thank you.
Regards,
Eva Kemp.
Hi
I got the same problem on hentry markup missing in google webmaster, Could you tell me how to fix it?
https://imgchr.com/i/9JI4Z8
https://imgchr.com/i/9JIfqf
thanks
James
Hello, @yea73920
Please add this code in royal/framework/theme-functions.php file https://gyazo.com/c06a4404988e0475b71e58766946c842:
// **********************************************************************//
// ! Add hatom data
// **********************************************************************//
if ( ! function_exists( 'et_add_hatom_data' ) ) {
function et_add_hatom_data($content) {
$t = get_the_modified_time('F jS, Y');
$author = get_the_author();
if( is_home() || is_singular() || is_archive() ) {
$content .= '<div class="hatom-extra" style="display:none;visibility:hidden;">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', 'et_add_hatom_data');
add_filter('get_the_content', 'et_add_hatom_data');
add_filter('get_the_excerpt', 'et_add_hatom_data');
}
Also, the fix will be added in next theme update.
Regards
Tagged: author, entry-title, hentry, markup, updated, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up