April 14, 2014

Textual description of firstImageUrl

How To Fix Missing Required Field Updated For WordPress

|
Here is a quick guide on how to fix missing required field updated for WordPress site.

When you check with Google Structured Data Testing Tool, you see this warning remark in red:

"Warning: Missing required field "updated". "

This schema structured data error is very easy to get rid of.

You just have to modify a certain code in the single post template.

how to fix missing required field updated for WordPress

How To Fix Missing Required Field Updated For WordPress


 This is what you do:

1. Log in to your WordPress Dashboard.

2. At the Dashboard, scroll down to "Appearance".

3. Click on "Editor".

4. Under "Templates" on the right hand side of the page, click on the Single Post (single.php).

5. Now look for this code:

 <span class="post_date"><?php the_time('j F,Y'); ?></span>
6. Modify the above code to:

 <span class="post_date date updated"><?php the_time('j F,Y'); ?></span>
7. Click the "Update File" button. 

Note: Some of you might not have the exact same code in your template or theme as mentioned at #5.

Then look for this: <?php the_time('j F,Y'); ?> and then add in <span class="post_date"> and </span> in between.

After adding the code, it looks like this:

<span class="post_date"> <?php the_time('j F,Y'); ?>
</span>
Another thing is, if you have already hidden or removed the date and time code, then you cannot fix this problem.

The error remark Missing required field "updated" will be shown in structured data testing tool.

Related Tips:

* How To Fix Missing Required Field Updated Error For Blogger  
 
* How To Fix Missing Required Field Entry-title For WordPress
 
* How To Fix dateModified Warning For WordPress
 
* All In One Schema Rich Snippets Plugin For WordPress
 
* How To Add Schema Structured Data Markup To WordPress Site