WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Twenty-Eleven Warning: Missing required field "updated" (5 posts)

  1. sdpate48
    Member
    Posted 1 year ago #

    I am getting the rich snippets message "Warning: Missing required field "updated""

    None of the fixes for twenty-eleven have worked.

    The I checked the source on one of my posts" Windows 8 You and Me Together"

    On line 194 is the HTML code "<style type="text/css"><span class="updated"><?php echo get_the_date(); ?> </span></style>

    And on 335 is the value "<span class="updated">December 10, 2012 </span>"

    So the value "updated" is there but the Google snippets tool does not see it.

    Can anyone tell me where my problem is? Thanks

  2. Daniel Marquard
    Member
    Posted 1 year ago #

    Hi sdpate,

    I just had a look at your website. Google is looking for the "updated" class in <time class="entry-date" ...

    I ran into the same problem myself where I could find no up to date tutorials on how to fix this, so I delved into the code and resolved it myself. Hopefully the tutorial I wrote can save people some time on this issue.

    http://www.technosultants.com/blog/warning-missing-required-field-updated-wordpress

  3. sdpate48
    Member
    Posted 1 year ago #

    This was answered by Daniel Marquard

    Essentially the problem is the "time class="entry-date""

    needs to match Google's spec "time class="entry-date updated""

    functions.php line 581

  4. sdpate48
    Member
    Posted 1 year ago #

    and thanks.

  5. webtemple
    Member
    Posted 1 year ago #

    HI All,
    Could you please anyone help me to solve the same issue, I already updated as above, but still the same issue.

    Really appreciate the help.
    ---------------------------------------------------
    function twentyten_posted_on() {
    printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ),
    'meta-prep meta-prep-author',
    sprintf( '<span class="entry-date updated">%3$s</span>',
    get_permalink(),
    esc_attr( get_the_time() ),
    get_the_date()
    ),
    sprintf( '<span class="author vcard">%3$s</span>',
    get_author_posts_url( get_the_author_meta( 'ID' ) ),
    esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
    get_the_author()
    )
    );
    }
    endif;

    if ( ! function_exists( 'twentyten_posted_in' ) ) :
    ---------------------------------------------------------------

Topic Closed

This topic has been closed to new replies.

About this Topic