-
AuthorPosts
-
January 4, 2015 at 3:02 am #176052
Please help me with this problem Themeco. I’ve been trying to test my website pages with Structured Data Testing Tool by Google webmaster.
The errors I’m getting are:
Error: Missing required field “updated”.
Error: Missing required hCard “author”.Website: http://www.teacherph.com
Is this a theme problem?
Related Article: https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone
Solution (did not work): http://websitetrafficincreaserguy.com/google-authorship-compliance-wordpress/
Another Solution: http://fivera.net/hatom-feed-hatom-entry-error-wordpress-solution/
Newly found one: http://www.davidtiong.com/fix-hatom-microformats-at-least-one-field-must-be-set-for-hatomentry/
Another one: http://www.drafie-design.nl/correct-hatom-errors-in-google-webmaster-tools/
Another: https://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/
Please help me to make it compatible to X theme.. I am also using integrity child theme. Thanks!
January 4, 2015 at 3:11 am #176055Quoting:
Hi Support
Schema markup is an important capability. An I suspect will only become more important. Please consider creating an extension to easily add markup.
Thanks
Tim
I agree!
January 4, 2015 at 3:11 pm #176351Hi guys,
Schema markup are added by default on X theme because they are needed of course for SEO purposes.
Like on this thread https://theme.co/x/member/forums/topic/structured-data-hentry-missing-fields-forum-fix-not-working/
Where the tools are looking data fields from carousel too, isn’t should be looking into places where schema and type are declared?
Google webmaster tool now recognized .hentry as declaration of mircrodata, in which wordpress generate it automatically. Not all area needs to have microdata, specially if isn’t meant to be part of article like carousel. But because of .hentry added class, its like declaring that it should be treated as article.
There is no need any extension to add markup, as those are generated from post title, published date, and author. Adding one is like re-adding the same title and etc.
What really needed is solution for .hentry, which I think is it needs to be removed from other areas while retaining for real articles. I’ll forward your concern and stay tuned ๐
Thanks!
January 4, 2015 at 9:36 pm #176460Thank you for the information. I’ll be watching this thread. Can you provide me with a quick fix code? Like on this one: https://theme.co/x/member/forums/topic/structured-data-hentry-missing-fields-forum-fix-not-working/ I am currently using integrity child theme.
January 4, 2015 at 10:41 pm #176479Having this same issue on my site as well as several clients. I imagine they all have this exact problem, but only a few use webmaster tools at all and likely haven’t realized what to do here.
I’d like to second the request for code like the post above me. In the future, perhaps a setting can be introduced someplace to help with placement here without messing with files directly. – Or, perhaps you know a worthy plugin that will help implement this with X reliably?
Thank you for everything you do,
Charlie
January 5, 2015 at 4:32 am #176632Hi there,
Thanks for writing in!
Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
After that, add following code at the end of your child theme’s functions.php file:
/* Fix "Missing Author" and "Missing Updated" issue - START */ add_filter( 'the_content', 'custom_author_code'); function custom_author_code($content) { if (is_singular() || is_single()) { return $content . '<div class="hatom-extra"><span class="title">'. get_the_title() .'</span> was last modified: <span class="updated"> '. get_the_modified_time('F jS, Y') .'</span> by <span class="author vcard"><span class="fn">'. get_the_author() .'</span></span></div>' ; } else { return $content; } } /* Fix "Missing Author" and "Missing Updated" issue - END */
Then add following CSS code under Custom > CSS in the Customizer:
.hatom-extra { font-style: italic; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
Hope this helps.
Thanks.
January 5, 2015 at 5:18 am #176658Great! working. thank you so much Themeco ๐
Please do update us when this fix is incorporated on the next release of X. So we can revert back the changes that was made.
January 5, 2015 at 7:02 am #176720You’re welcome! ๐
January 14, 2015 at 9:08 am #182841Hi,
I’m not sure if I can re-open this thread but I followed the instructions above as I have the same issue on my site.
I added the above code to my child-theme’s function.php file and updated the CSS in Customizer as per this post.
However, in my particular situation, this meant that the information was displayed in the output on my page…is this what is supposed to happen?
Thanks, Angie
January 14, 2015 at 6:49 pm #183265Hi Angela,
Yes, it should output additional information from end of each of your post. Would you mind providing your url address, and if possible your admin login so we could check it further?
You should also clearing your caching plugin’s cache if available after this change.
Thanks!
January 21, 2015 at 10:59 am #187998Just asking if this was included in the update today? Thanks!
January 21, 2015 at 12:48 pm #188160Hey There,
This was not included in the latest update. If you need anything else let us know.
February 4, 2015 at 10:13 am #198918I had followed the intructions, but i still get the error. Can you help me please? frenchiemania.com
February 4, 2015 at 3:53 pm #199190Hi Ignacio,
Have you tried clearing your caching pluginโs cache? Hope it works if not let us know.
Thanks.
February 5, 2015 at 2:43 am #199520I always clear cache and is still showing the error
-
AuthorPosts