WordPress Theme Customizr and Missing Required Field “updated” 6

Harry B.'s Customizr Theme

Harry B.’s Customizr Theme

Since I recently started blogging, I checked my blog with the “Google Structured Data Testing Tool“. I use the WordPress theme Customizr (version 3.1.5) and everything was fine except for this message: Warning: Missing required field updated.

It seems that in the English version of the testing tool categorizes this issue as a warning while in the German version shows it as an Error. %-)


After some research and a quickly answered post on wordpress.org I checked the sourcecode of Customizr and located the problem.

The code responsible for the warning is located in file wp-content/themes/customizr/parts/class-content-post_metas.php in line 69.

The original code looks like this:

sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>' ,

and this is how it’s supposed to be:

sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date updated" datetime="%3$s">%4$s</time></a>' ,

The displayed date just needs to be assigned the classes “entry-date” and “updated”.After this was done and published, the tool reported no more warnings or errors and validated quite nicely.

Of course I notified Nicolas Guillaume about this issue and hopefully he will permanently fix it in one of the next versions of Customizr. Unfortunately the bugfix did not make it into version 3.1.6.

Leave a comment

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


6 thoughts on “WordPress Theme Customizr and Missing Required Field “updated”

  • Timothy

    Thanks for the post. I’ve been looking for hours on this fix. Can (should) this code be inserted in the child theme? And is there a way to make sure child theme is formatted properly? (I can see the child theme in my editor, but it seems like the changes I make to css and other files have no effect.)

  • Harry B. Post author

    I did not use child themes but fixed the file provided by Customizr. I assume it should also be possible to apply this change to the child theme though but I have no experience with that.
    I would assume that there is a problem with your child theme setup somewhere.

  • Lee

    Hi All,

    I have manually follow steps above and done it on the wp editor, but the testing tool still show…

    Error: Missing required field “entry-title”.
    Error: Missing required field “updated”.
    Error: Missing required hCard “author

    What should I do?

  • Harry B. Post author

    when looking at your blog I did not find any posts but pages instead. My fix only works for posts since pages do not show the creation date of the page.

  • Pascal

    Hi Harry,

    I’m using Customizr v3.1.10 on WordPRess 3.8.3
    I’m facing the 2 Google structured data error :
    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.
    (Title is OK)
    I checked “content-post_metas.php” file from the Theme and the modifications has been done for the correct class name, still it’s not working.

  • Omar Belkadi

    Hello Harry,

    Could you help please. I am using the same theme like yours. I read your post.
    As you may have already noticed, based on the new version of Customizer your post is not helping anymore.

    Do you have an idea how to fix these based on the new version of Customizer

    Error: Missing required field “entry-title”.
    Error: Missing required field “updated”.
    Error: Missing required hCard “author”.

    I will thankful to you.