Hatom errors (Richt snippets)

Best WordPress theme for game news websites, game portals or whatever your preferred subject.
GK User
Fri Nov 28, 2014 12:27 pm
Because i have reviews on my website i want to use star ratings that will be displayed in Google search results. i am using a plugin called WP-Review that fixed that. But when i am looking on the rich snippet tool: http://www.google.nl/webmasters/tools/r ... denberg%2F

I was getting 4 errors. I found a tutorial on: http://fivera.net/hatom-feed-hatom-entr ... -solution/ and fixed 2 errors. But i cant fix the last 2 errors:
Fout: Missing required field "updated".
Fout: Missing required hCard "author".

I post it here because its about the theme files and support for the google rich snippets. How can i fix this? Which files must i use and what must i change exactly to get this working / get no errors anymore?
User avatar
Fresh Boarder

GK User
Fri Nov 28, 2014 1:51 pm
Hello,

Regarding your issuess, please edit GameNews/gavern/helpers/helper.layout.fragments.php file and change this fragment:(around line 266)

Code: Select all
<time class="entry-date" datetime="<?php echo esc_attr(get_the_date(DATE_W3C)); ?>">
                <?php echo esc_html(get_the_date()); ?>
             </time>

add updated class after "entry-date ..

and this fragment:
Code: Select all
<li>
          <?php _e('Written by:', GKTPLNAME); ?>
          <a class="url fn n" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo esc_attr(sprintf(__('View all posts by %s', GKTPLNAME), get_the_author())); ?>" rel="author"><?php echo get_the_author(); ?></a>
       </li>

change into:
Code: Select all
<li class="vcard author">
          <?php _e('Written by:', GKTPLNAME); ?>
          <a class="url fn n" href="<?php echo esc_url(get_author_posts_url(get_the_author_meta('ID'))); ?>" title="<?php echo esc_attr(sprintf(__('View all posts by %s', GKTPLNAME), get_the_author())); ?>" rel="author"><span class="fn"><?php echo get_the_author(); ?></span></a>
       </li>
User avatar
Moderator

GK User
Mon Dec 01, 2014 2:33 pm
Its not working. I send you an PM with the login details.
User avatar
Fresh Boarder


cron