Hello,
Since an update one month ago I have a proble with the author info missing (just saw that today)
I’ve check Google webmaster (see file attached) and have this error :
Erreur : At least one field must be set for Hcard.
Erreur : Missing required field “name (fn)”.
I’ve check the single.php file where I could see :
<?php if ($single_author && !$remove_dates) { ?>
<span class="vcard author"><?php echo sprintf(__('Posted on <span class="date updated">%1$s</span> in %2$s', 'swiftframework'), $post_date, $post_categories); ?></span>
<?php } else if ($single_author && $remove_dates) { ?>
<span class="vcard author"><?php echo sprintf(__('Posted in %1$s', 'swiftframework'), $post_categories); ?></span>
<?php } else if ($remove_dates) { ?>
<span class="vcard author"><?php echo sprintf(__('Posted by <a href="%2$s" rel="author" itemprop="author" class="fn">%1$s</a> in %3$s', 'swiftframework'), $post_author, get_author_posts_url(get_the_author_meta( 'ID' )), $post_categories); ?></span>
<?php } else { ?>
<span class="vcard author"><?php echo sprintf(__('Posted by <a href="%2$s" rel="author" itemprop="author" class="fn">%1$s</a> on <span class="date updated">%3$s</span> in %4$s', 'swiftframework'), $post_author, get_author_posts_url(get_the_author_meta( 'ID' )), $post_date, $post_categories); ?></span>
<?php } ?>
I actually wonder if it’s related to my translation problem, my website is in french but the part showing the author with the “Posted by” stay in english…
Any clue on how to fix this ? (more than 900 errors, not sure google like it…)
Thanks