In Twenty Ten Theme: Erro: Missing required field "updated" and hCard "author".
-
I’m using Twenty Ten theme and getting these data structure errors:
Erro: Missing required field “updated”.
Erro: Missing required hCard “author”.I already search for a solution to fix this, and found many solutions which none of them worked for Twenty Ten theme.
I tried the solution below found on this forum for Twenty Eleven, adding these lines to my fuctions.php file (child theme). That also didn’t work.
function twentyten_posted_on() {
printf( __( ‘<span class=”sep”>Posted on </span><time class=”entry-date updated” datetime=”%3$s” pubdate>%4$s</time><span class=”by-author”> <span class=”sep”> by </span> <span class=”author vcard”>%7$s</span></span>’, ‘twentyten’ ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( ‘c’ ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
esc_attr( sprintf( __( ‘View all posts by %s’, ‘twentyten’ ), get_the_author() ) ),
get_the_author()
);
}I’m assuming it didn’t work because when I go to Google Webmaster Tool and test it, I still get the same errors. I’m not sure if I have to wait to test it after I make these changes.
Any help will be appreciated.
Thanks.
- The topic ‘In Twenty Ten Theme: Erro: Missing required field "updated" and hCard "author".’ is closed to new replies.