Problem with hentry markup Missing: author, entry-title and updated

This topic has 5 replies, 4 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler

  • Avatar: emeliech
    emeliech
    Participant
    February 21, 2016 at 20:13

    Hello,

    We have problems showing up in google webmaster tools.

    When I go to Structured Data > hentry (markup: microformats.org) I get 387 errors mainly giving the same error:

    Missing: author
    Missing: entry-title
    Missing: updated

    I have read a lot about this in forums, and there seems to be something missing in single.php file and maybe page.php file.

    Here is one things I have read:
    https://wordpress.org/support/topic/google-structured-data-missing-required-field-authorship-thumbnails-gone/page/2

    Do you have a fix for this?

    Thanks!

    4 Answers
    Avatar: emeliech
    emeliech
    Participant
    February 21, 2016 at 20:14
    Avatar: Eva
    Eva Kemp
    Support staff
    February 22, 2016 at 13:06

    Hello,

    Could you please show a screenshot where you see errors?

    Thank you.

    Regards,
    Eva Kemp.

    Avatar: yea73920
    yea73920
    Participant
    February 13, 2018 at 04:50

    Hi

    I got the same problem on hentry markup missing in google webmaster, Could you tell me how to fix it?

    https://imgchr.com/i/9JI4Z8
    https://imgchr.com/i/9JIfqf

    thanks

    James

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    February 13, 2018 at 11:32

    Hello, @yea73920

    Please add this code in royal/framework/theme-functions.php file https://gyazo.com/c06a4404988e0475b71e58766946c842:

    // **********************************************************************//
    // ! Add hatom data
    // **********************************************************************//
    
    if ( ! function_exists( 'et_add_hatom_data' ) ) {
        function et_add_hatom_data($content) {
            $t = get_the_modified_time('F jS, Y');
            $author = get_the_author();
            if( is_home() || is_singular() || is_archive() ) {
                $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;">was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>';
            }
            return $content;
        }
        add_filter('the_content', 'et_add_hatom_data');
        add_filter('get_the_content', 'et_add_hatom_data');
        add_filter('get_the_excerpt', 'et_add_hatom_data');
    }

    Also, the fix will be added in next theme update.

    Regards

  • Viewing 5 results - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.