Fixing Warning: Missing entry-title, Updated, and Author on WordPress



Incidentally a few days ago had asked friends to help fix some problems "Missing required fields" such as "missing entry-title", "missing updated" and "missing author" that occurs in wordpress blog theme when done using google rich snippet testing tools.

So, let's discuss this issue.

Some missing error that often occurs when using wordpress or blogger theme, namely:

Missing: required field "entry-title".
Missing: required fields "updated".
Missing: required hCard "author".

Basanya, this error occurred because of an error class attributes used in html template / theme wordpress. How to solve the problem in is easy, the following stages:

Missing: required field "entry-title"

This error usually appears because of the use of class attributes title / headline is wrong with theme / template, for example on some theme / template wordpress typically use attributes such as "post title" or "title-post" and so forth, so that caused the error in the entry title.

How to fix it fairly easy, we just need to add class attributes of "entry-title" in the HTML title is problematic. So the format is generally like this:

<H1 class = "entry-title"> Page Title </ h1>

Code red in the code attribute class is added to fix the error.

In the default wordpress theme can be found in single.php, if using a template from another party usually html title position is everywhere, therefore, if you use the template / theme of the other party, please open one by one php file on his theme to look for h1 title and add the attribute as follows:

<H1 class = "entry-title"> <? Php the_title (); ?> </ H1>

Missing: required field "updated"

This error is usually due to an error occurred in the penangggalan attribute (date) posting on the web / blog. How to fix it by adding a "date updated" in his class attributes, like this:

<Span class = "date updated"> Date </ span>

Examples of repairs like this:

<Span class = "date updated"> <? Php echo get_the_date ();?> </ Span>

 or it could be like this:

<Span class = "date updated"> <? Php the_time (); ?> </ Span>

Missing: required field "author"

If this one is usually due to writing class attribute wrong author, and the format is generally like this:

<Span class = "vcard author">

<Span class = "fn"> Author Name </ span>

</ Span>

If the default wordpress author code in single.php its theme, but if you already use the theme of the other party then please look for first position in which the mouth php to find snippets of code like this: the_author (); or the_author_posts_link () ;. Examples of repairs such as the following:

<Span class = "vcard author">
 <Span class = "fn"> <? Php the_author (); ?> </ Span>

 </ Span>

or can write the following code:

<Span class = "vcard author">

<Span class = "fn"> <? Php the_author_posts_link (); ?> </ Span>

</ Span>



If everything has been installed, please save (save) and then clear the caches web / blog, then please try at the test again using google rich snippet tools: http://www.google.com/webmasters/tools/richsnippets

Good luck: D

Comments