You are currently viewing Fix Google Rich Snippets Errors : Warning: Missing required field in WordPress

Fix Google Rich Snippets Errors : Warning: Missing required field in WordPress

Rich Snippet is a additional feature in Google search that show additional info about page listed in search, specially Author, Date, Ratings etc. Rich snippets are displayed reading microformats or RDFa in the web pages. According to some sites, rich snippets can improve the SEO of the site (though I haven’t seen any change).
If you are thinking of putting rich snippets in WordPress then the chances are, you might face snippets error such as:
Warning: Missing required field “entry-title”
Warning: Missing required field “updated”
Warning: Missing required hCard “author”

fix warning missing fields google rich snippets

To fix these errors you need to modify single.php file, the instruction on fixing these errors along with code in given below.

Warning: Missing required field “entry-title”

This error occurs when Google snippet cannot find the title.
Replace
<h1><?php the_title(); ?></h1>
with
<h1 class="title single-title entry-title"><?php the_title(); ?></h1>
note: some themes has h2 instead of h1.

Warning: Missing required field “updated

This error occur when Google Snippet cannot find date it was published or last updated.
To solve this find,
<span class="post_date"><?php the_time('j F,Y'); ?></span>
and replace it with
<span class="post_date date updated"><?php the_time('j F,Y'); ?></span>

Warning: Missing required hCard “author”

This error occur when Google is unable to find the author of the post. This part use elements from hCard microformat which are ”vcard” and ”fn”.
To solve this,
Find : <?php the_author(); ?>,
and replace it with;
<span class=”vcard author”><span class=”fn”><?php the_author(); ?></span></span>

Editing these usually fixes all the error related to Google snippets and make your wordpress theme compatible with Rich Snippets. You check the error in rich snippet from Rich Snippets Testing Tools.

If you are having “Connection not secure” error in WordPress. Please have a look at this post.


Pritush

Nepallica was started by Pritush and regularly updates this blog, beside Nepallica he also contributes to Nepalunderground.com. Connect with on Google+
Subscribe
Notify of
guest
17 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
michael deluca
michael deluca
9 years ago

Hey thanks for the post. Im getting ” Updated ” warning only. i’m under appearance and editor trying to find the area where it has : php the_date

Which specific category can i find that to resolve this , and these warning HAVE to be fixed in order for authorship to show ? ( During rich snippets testing my picture shows and says I’m verified )
Thanks a million ! Been trying to figure this out for a few days straight now …

Pretush
Pretush
9 years ago
Reply to  michael deluca

All errors must be solved in order to get authorship appear in result, if every thing is correct rich snippet will show up with in 4-5 hours.
If you still having problem on warning missing field updated, install wordpress plugin called Author Sure, under settings check option “show update date” this will show date at the end of post as seen in this post.

michael deluca
michael deluca
9 years ago
Reply to  Pretush

hey thanks, just tried installing the author sure and parked the
” foot note ” box to have ” updated by ” . However it is still displaying the same message and it mentions that category next to the warning . Any thoughts ? We are so close to having it resolved! thanks for your time and energy

Pretush
Pretush
9 years ago
Reply to  michael deluca

here is the screenshot of my authorsure setting, i hope this will help. Usually checking that box solves the problem.

michael deluca
michael deluca
9 years ago

Just used the same settings as the screen shot but it still says the error warning. Can’t explain in words how much this is appreciated that you are helping me fix this . What are some additional solutions to make it work ?

michael deluca
michael deluca
9 years ago

BRO YOU ROCK I GOT IT OMG YESSSSSS!!!!

phan mem ban hang
phan mem ban hang
9 years ago

how to fix the genesis but I try not to be

Jennifer Allen
Jennifer Allen
8 years ago

Three thumbs up! Thanks :)

Gyle Martinda
Gyle Martinda
8 years ago

Wow …. thanks thanks thanks i get success with your tips. After many work on http://aen24.com it i get success thanks for sharing

Arthur
Arthur
8 years ago

i have a blog, how to fix? :/

Pretush
Pretush
8 years ago
Reply to  Arthur

If it is on blogspot i guess it doesn’t need much work it should appear automatically. And, you need to have portrait picture of yours in Google plus inorder to have rich snippet appear.

Guest
Guest
7 years ago

Hey Everyone,

I have done all the possible ways to do it but its not working, can anyone please help me.

here goes my link

I am getting the following error in webmaster tools

hatom-feed
hatom-entry:
entry-title: Buy: Acer Aspire TimelineX AS1830T-6478 11.6-Inch Laptop (Black) | order by reviews
Error: Missing required field “updated”.
Error: Missing required hCard “author”.

It would be really helpful if anyone can help me out.

Justme
Justme
7 years ago

When I enter the codes in Single.php, it fixes the posts on my site but not the pages. Do you know a reason for this? Thank you!

Ruben Pope
Ruben Pope
7 years ago

I am getting the “Updated” error, but I can’t find the code in any of my php files to replace it with the correct one. Do you have any tips on locating it or is it possible I just don’t have it to begin with? Any idea how’d be able to check that? Thanks!

yogesh
yogesh
6 years ago

missing author missing entry-title missing updated in webmaster what i will do i m not a coder any plugin in wordpress which will help

Pretush
Pretush
6 years ago
Reply to  yogesh

have you tried Yoas SEO plugin ?

rascal0pl
rascal0pl
6 years ago
Reply to  Pretush

I’m using Yoast, but still, on every post :

Missing: entry-title
Missing: updated