Error: Missing required field "updated"

Support Forums for LiveMesh Themes & Plugins Forums Appdev Theme Support Error: Missing required field "updated"

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4314
    Mehmet
    Member

    Hello,

    Google Webmaster Tools show me mass of errors with the structured data.

    Warning: Missing required field “updated”.

    I found solution for default WordPress theme but I could not apply to Appdev

    I searched on google and it seems to be different solutions depend on the theme in use.

    Thanks.

    #4361
    Raghavendra
    Moderator

    Can you pls tell me the solution you applied to the default theme or send me a link to it. I can take a look and tell you exactly the place you can make the change for our theme. Thanks

    #4374
    Mehmet
    Member

    Hi,

    The solution addressed to the single.php and add update class as show below. However I could not find correct place to apply this on AppDev theme. Please check below and let me know.

    Thanks.

    Fix Missing required field “updated”
    look for the code below on your WordPress theme’s single.php file.

    Find this
    <span class=”post_date”><?php the_time(‘j F,Y’); ?></span>

    then add “date updated” attribute to it. Your code should look like

    <span class=”post_date date updated”><?php the_time(‘j F,Y’); ?></span>

    A tutorial how to apply for Twenty Eleven theme
    http://www.technosultants.com/blog/warning-missing-required-field-updated-wordpress

    #4421
    Raghavendra
    Moderator

    The best place would be line number 58 of framework/functions/post-functions.php file. Replace the same by –

            $link = '' . $prefix . '' . '' . get_the_time($format) . '' . '';
    

    and see if it helps any. I have just added the spans around the get_the_time above, in case just copy pasting from above gives some error.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Appdev Theme Support’ is closed to new topics and replies.