Sandeep Singh
asked 10 years ago

 
Hello,
I’m running WP 3.8 and the latest Yoast plugin and I’m seeing an error in Google Webmaster Tools that says:
Missing: author
Missing required hCard “author”.
Missing: updated
I’m not sure where I forgot to add in that information. Any ideas how I add that to each post/page?

I believe that this issue about “Missing: updated” might not be related to the SEO plugin but with the theme i am currently using DW-Focus.
Please Help

Thanks!

5 Answers
DominicStaff
answered 10 years ago

Hi Sandeep !
This error occurs when Google is unable to find the author of the post. This part uses elements from hCard microformat which are ”vcard” and ”fn”.
Please try out the solution here:
http://nepallica.com/fix-google-rich-snippets-warning-missing-required-field-wordpress/ .

Shajee Fareedi
answered 10 years ago

Hey Sandeep, Its Shajee Fareedi here, i am having the same problem with my website. Webmaster is showing the same error for every post page of my website shajeefareedi.com, i would like to know if you have fixed this error for your website, Kindly help me too if you have done.
Otherwise, if someone else can help me, i will be very thankful.
All helpful informations are welcome! 🙂 
Thanks a lot . . .

Benjamin Bruns
answered 9 years ago

I´ve got also the same Problem in DW_Focus.

But i could not find
<span class="post_date"><?php the_time('j F,Y'); ?></span>
or
“<?php the_author(); ?>” in single.php.

Because of that, i couldn´t use the solution from Dominic.
Is there any other solution?
Regards,
Ben

DominicStaff
answered 9 years ago

Hi,
You can find the datetime in the function “dw_focus_posted_on” of the inc/template-tags.php file, then find the line 140. 
Also, you can find the author in the function “dw_focus_post_actions” of the  functions.php file.

Benjamin Bruns
replied 9 years ago

Ok, could you tell me please, what i have to change in that files? It looks a little bit different to the solution above.Thanks,Ben

DominicStaff
answered 9 years ago

Hi,
You can open the teplate-tags.php file in the folder path “wp-content\themes\dw-focus\inc”. Find the line 139 to line 147, replace the following code:
Warning: Missing required field “updated”

function dw_focus_posted_on() {
the_category();
printf( '<time class="entry-date" datetime="%3$s" pubdate>%4$s</time>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
dw_human_time()
);
}

With new code: 

function dw_focus_posted_on() {
the_category();
printf( '<time class="entry-date updated" datetime="%3$s" pubdate>%4$s</time>',
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
dw_human_time()
);
}

Warning: Missing required hCard “author”
– You can open the functions.php file. Find the line 478 to line 481. 
Replace the following code: 

<div class="author-info">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
<a class="author-name" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
</div><!-- .author-info -->

With new code:

<div class="author-info vcard">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 96 ); ?>
<a class="author-name url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"><?php echo get_the_author(); ?></a></h2>
</div><!-- .author-info -->

Hope this helps !

 

Melvin Pereira
answered 9 years ago

Hola Dominic,

I have been trying everything possible to fix the same problem I´m getting from Google Webmaster Tools. This is my website http://www.purenow.solutions

Do I need to upgrade the template version ? I´m not sure what version I´m running at this moment.

Muchas gracias

Melvin

DominicStaff
answered 9 years ago

At the moment, we have released the latest version 1.1.0, you can check the version in the Dashboard > Theme > Theme Detail to see the version of your site.
If you using older version, you can send me your email, I will send the latest version for you (via email).
Regards,

Melvin Pereira
answered 9 years ago

Yes please…. my email is melvin at enetwork.co.cr . I would really appreciate if some back up instructions are provided with the new version.

mploria
replied 9 years ago

I´m running version 1.0

dominic Staff
replied 9 years ago

I will send the latest version via email. please check your email.

mploria
replied 9 years ago

Hola Dominic,

PERFECTO !!!!!! I seamlessly updated the theme to 1.1 and it looks great.

dominic Staff
replied 9 years ago

At the moment this issue still not yet update in the version 1.1.0.

mploria
replied 9 years ago

Thank you very much Dominic.

I just updated the template-tags.php with <time class="entry-date" datetime="%3$s" pubdate>%4$s‘,
and the functions.php file with <div class="author-info vcard">
<?php echo get_avatar( get_the_author_meta( ‘ID’ ), 96 ); ?>
<a class="author-name url fn n" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ); ?>" rel="author"><?php echo get_the_author(); ?>

mploria
replied 9 years ago

I´m waiting for Google Webmasters Tools to refresh my website

Melvin Pereira
answered 9 years ago

Hola Dominic,

Google Webmaster Tools reduced from 216 errors to 195 erros in 1 week. It is working

Muchas gracias,

Melvin

Powered by DW Question & Answer Pro