Structured Data Errors in Google Webmaster Tools: Missing required hCard "author" / field "updated"
I'm not sure if anyone else has brought this up earlier.
After installing BeTheme, the 'Structured Data' section in Google Webmaster shows the following 2 errors for all category / tag / page number related URLs on the blog.
Error: Missing required field "updated".
Error: Missing required hCard "author".
Here's a screenshot: http://snag.gy/WqVgK.jpg
A quick Google search got me to this page that describes how to fix the issue by updating the theme pages.
http://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/
A few others have shared code snippets here:
https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone/page/2
I haven't seen this for regular posts and pages in BeTheme. Just for category/tag level pages. And I'm not sure if the links above fix it for category pages.
Would it be possible for your team to evaluate if it's a generic problem with the theme and if so, include a fix in the next release of BeTheme?
After installing BeTheme, the 'Structured Data' section in Google Webmaster shows the following 2 errors for all category / tag / page number related URLs on the blog.
Error: Missing required field "updated".
Error: Missing required hCard "author".
Here's a screenshot: http://snag.gy/WqVgK.jpg
A quick Google search got me to this page that describes how to fix the issue by updating the theme pages.
http://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/
A few others have shared code snippets here:
https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone/page/2
I haven't seen this for regular posts and pages in BeTheme. Just for category/tag level pages. And I'm not sure if the links above fix it for category pages.
Would it be possible for your team to evaluate if it's a generic problem with the theme and if so, include a fix in the next release of BeTheme?
Comments
http://snag.gy/rh7wr.jpg
If it helps you fix it in the underlying code (and for the benefit of others who have this issue), here's what I did:
Updated in content-single.php
<span class="vcard author post-author"><span class="fn"><?php the_author_meta( 'display_name' ); ?></span></span>
<span class="post-date updated"><?php echo get_the_date(); ?></span>
Updated in content-post.php
Added in footer (just before love button code)
<span class="vcard author post-author"><span class="fn">'. get_the_author_meta( 'display_name' ) .'</span></span>
Disclaimer: I'm not sure if this'll work for others, so use with caution.
Here's an update on the Structured Data issue that I had mentioned about in the original post 2 years back.
I've updated my site to the latest Betheme version.
The 'missing author' issue no longer exists. But the second one ' missing:updated' still does.
So, I've gone back into the code (content-single.php) like last time and made the same manual fix as described above in my second response.
I'll keep a watch on how the error graph moves in the Google Search Console and let you know if my earlier fix resolves the issue this time as well (or not).
@shomix
https://www.irandeliver.com/suggest/kharid-az-colins - as you can see on http://pasteboard.co/7Fd1owBUI.png this page generates 3 errors only
https://www.irandeliver.com/kharid-sport-tools-az-ebay.html - this page has 2 errors only
It means there is 5 errors in total on both pages so we wonder where did you found 240 errors. Anyway we can see what you mean and we will have a look on those tags while future updates.
I meant in Structured Data not each link
http://pasteboard.co/7KVWNVToW.png
All blog single posts are listed in it.
And here's a sample link from the site. It has the updated code (with my manual fix):
http://www.mbacrystalball.com/blog/2016/08/10/company-sponsored-mba-pros-and-cons/
Error: Missing required hCard "author".
Yes, I was able to fix them manually. I've explained how I did it in the earlier responses above.
But it'll be best if the Betheme team incorporates the changes directly. It'll save the manual changes for many users of this excellent theme.
Here's what I was able to do with the theme:
http://forum.muffingroup.com/betheme/discussion/23335/pingdom-performance-grade-100-perfect-score-for-betheme
<span class="vcard author post-author"><span class="fn"><?php the_author_meta( 'display_name' ); ?></span></span>
<span class="post-date updated"><?php echo get_the_date(); ?></span>
What you ask for, requires files customization what in reference to Item Support Policy is not allowed. So if you want to modify files and don't know how, you should contact with your web developer. Item Policy clearly says:
Item support does not include services to modify or extend the item beyond the original features, style and functionality described on the item page. For customization services that will help you tailor the item to your specific requirements, we recommend contacting the author to see if they privately offer paid customisation services or checking out the great service providers on Envato Studio
thanks