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/

Cara Memasang Google Translate di WordPress

  1. Klik https://translate.google.com/manager/website/settings
  2. Klik Add New Website
  3. Tulis website nya pada kolom website URL
  4. Pilih default bahasa yang digunakan di web yang kita gunakan
  5. Jika diinginkan pilihan bahasa tertentu pilih beberapa bahasa yang akan ditranslate
  6. Pilih Get Code
  7. Masukkan code seperti berikut ini
    <div align=”center”>

    Pilih Bahasa Translate<div id=”google_translate_element”></div><script type=”text/javascript”>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({pageLanguage: ‘en’, includedLanguages: ‘ar,en,id,ja,ms,nl,zh-CN’, layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, ‘google_translate_element’);
    }
    </script><script type=”text/javascript” src=”//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit”></script>