Error: missing required field “update” – Webmaster Tools

Error: missing required field “update”
1. Login ke WP-admin di wordpress, kemudian klik Appearance, klik Editor
2. Edit file template-tags.php
3. Kemudian edit file tersebut, tambahkan kode berikut
<time datetime=”%2$s”>%3$s</time>

Untuk error missing

Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”.
Silakan copy paste link berikut ini

printf( __( ‘Posted on <a href=”%1$s” title=”%2$s” rel=”bookmark”><time datetime=”%3$s” pubdate>%4$s</time> <time datetime=”%2$s”>%3$s</time></a><span> by <span><a href=”%5$s” title=”%6$s” rel=”author”>%7$s</a></span></span>’, ‘patrick’ ),
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’, ‘patrick’ ), get_the_author() ) ),
esc_html( get_the_author() )
);

 

Di situs ir******.com juga mengalami hal sama, disarankan dalam satu situs :

Error: Missing required field “entry-title”.

Here is a simple example: on our page template (single.php) we had an <h2> tag containing the title like this:

<h2><?php the_title(); ?></h2>

We switched the code to include a class with entry-title like this:

<h2><?php the_title(); ?></h2>

 

Error: Missing required field “updated”.

Last, I found this:

<?php the_date(); ?>

And changed it to this:

<span><?php the_date(); ?></span>

 

Error: Missing required hCard “author”.

I then fixed the author error by finding the following (also in single.php):

<?php the_author(); ?>

and changing it to:

<span><span><?php the_author(); ?></span></span>

 

Dan file single.php pun kami update

<h1><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php printf(__(‘Link to %s’, ‘amazinggrace’), get_the_title()); ?>”><?php the_title(); ?></a></h1>
<?php else : ?>
<h1><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php printf(__(‘Link to %s’, ‘amazinggrace’), get_the_title()); ?>”><?php the_title(); ?></a></h1>
<?php endif; ?>

 

ref :

https://www.acceleratormarketing.com/trench-report/google-analytics-errors-and-structured-data/

https://developers.google.com/webmasters/structured-data/testing-tool/

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>