You must build a correct hierarchy of classes. Nest classes like:
<div class="hentry">
<h1 class="entry-title"></h1>
<div class="entry">
<span class="updated">Date</span>
</div>
</div>
This is my full single.php:
<?php get_header(); ?>
<section class="content">
<?php get_template_part('inc/page-title'); ?>
<div class="pad group">
<?php while ( have_posts() ): the_post(); ?>
<article <?php post_class(); ?>>
<div class="post-inner group">
<h1 class="post-title entry-title"><?php the_title(); ?></h1>
<p class="post-byline"><?php _e('by','hueman'); ?>
<span class="vcard author"><span class="fn">
<a href="https://plus.google.com/+HeikkiLahtela" target="_blank" rel="author"><?php the_author() ?></a>
</span></span> Β· <span class="updated"><?php the_time('F j, Y'); ?></span></p>
<?php get_template_part('inc/post-formats'); ?>
<div class="clear"></div>
<div class="entry">
<div class="entry-inner">
<div class="entry-content"><?php the_content(); ?></div>
<p class="post-byline"><?php _e('by','hueman'); ?>
<span class="vcard author"><span class="fn">
<a href="https://plus.google.com/+HeikkiLahtela" target="_blank" rel="author"><?php the_author() ?></a>
</span></span>
Β· Last modified <span class="updated"><?php the_modified_date('F j, Y'); ?></span></p>
<?php wp_link_pages(array('before'=>'<div class="post-pages">'.__('Pages:','hueman'),'after'=>'</div>')); ?>
</div>
<div class="clear"></div>
<?php the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>
</div><!--/.entry-->
</div><!--/.post-inner-->
</article><!--/.post-->
<?php endwhile; ?>
<div class="clear"></div>
<?php //the_tags('<p class="post-tags"><span>'.__('Tags:','hueman').'</span> ','','</p>'); ?>
<?php if ( !ot_get_option( 'author-bio' ) && get_the_author_meta( 'description' ) ): ?>
<div class="author-bio">
<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
<p class="bio-name"><?php the_author_meta('display_name'); ?></p>
<p class="bio-desc"><?php the_author_meta('description'); ?></p>
<div class="clear"></div>
</div>
<?php endif; ?>
<?php if ( ot_get_option( 'post-nav' ) == 'content') { get_template_part('inc/post-nav'); } ?>
<?php if ( ot_get_option( 'related-posts' ) != '1' ) { get_template_part('inc/related-posts'); } ?>
<?php comments_template('/comments.php',true); ?>
</div><!--/.pad-->
</section><!--/.content-->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Did this work?
I copied and pasted your full code and yeah, it worked!
Something I wonder about though is the Error: Missing required hCard “author”.
That shows up underneath a category page. Is there a to tell google not to search for the author card on category pages? Or something like that?
I have attached a screenshot of what I am talking about http://screencast.com/t/DhdOKFisNU. I get that error underneath any sort of category URL.
Oh and THANK YOU SO MUCH!!!!!
Google says “The URL/page contains a single article (or subsequent versions of the article) or single piece of content, by the same author. This means that the page isnβt a list of articles or an updating feed.”:
http://googlewebmastercentral.blogspot.fi/2013/08/relauthor-frequently-asked-advanced.html
That is however a GOOD question what to do with the homepage and other NON-content pages. My two cents would be to remove the author code from the front page and other places where there are NO ACTUAL CONTENT. It seems that according to Google, rel=author code should only be used in “Posts” in WordPress (or in “Pages” if they have original written content).
My authorship image is not displaying currently so I have to do some more tests. Snippet is working as my name is seen on the SERP but I cannot say why the image is not.
PS. It would be nice to have a comment from Alexander on this …
thank you very much Taikahessu
for posting these your instructions work well
but for the main page does not work,
Can you help for this..
mainpage Not Work
http://sebarbrosur.com
otherpage Work well
http://sebarbrosur.com/tentang-kami/
You’re welcome @sebarbrosur. π
However, Google Authorship is not supposed to work on Main or Home pages.
Authorship is meant only for pages with real content, like blog posts.
This is clearly stated in my previous post. Information is from Google directly.
Just wanted to inform here that my face has started showing up on the Google results again.
I optimized my site heavily and added WP Super Cache and some other plugins to decrease the loading time significantly. From 3 seconds to a 1 second. I’m quite certain this had an effect on the issue.
I will soon write more about the optimizations I did on my site. But I guess that’s more or less off-topic.
I solved 2 errors Missing: author and Missing: updated. But Missing: entry-title is not getting solved. I added entry-title to class, but it’s not working. Structured Data Testing Tool is showing Error: Missing required field “entry-title”.
Here is the post URL for which it’s showing this error.
http://www.adequatecontent.com/how-to-create-your-first-content-marketing-strategy/
Please help me how to solve it or I missed anything?
Thanks in advance.
Anonymous User 13587685
(@anonymized-13587685)
Error: Missing required field “entry-title”.
Error: Missing required hCard “author”.
these error i got in every category of my page like
http://allnewtricks.com/category/whatsapp/
http://allnewtricks.com/category/uncategorized/
please help me to fix this on my site all new tricks
Hey Heikki, I’ve found your detailed solution on your website lathela.com .
Thanks for that.
Would it be possible to not have the google plus link in the byline?
I have a rel author link to my G+ profile in every content page (injected by YOAST).
And I want my byline link to go to the “about me” page of my website.
Would it be possible?
And a question for Alex: are you planning on including these changes in any future release?
CHEERS
I am also having a similar problem with my website http://www.hosbeg.com and http://www.kojoenoch.com
I have searched all over the internet to find a solution to it to no avail. The theme that I am using seems to have no solution so it is likely I will have to change it.
Can anybody help me?