Where to put hAtom author mark up?
-
Hi,
I had the following errors on Google Webmaster Tools:-
Error: Missing required field “entry-title”.
Error: Missing required field “updated”.
Error: Missing required hCard “author”.I managed to fix the first two errors (following these instructions https://fivera.net/hatom-feed-hatom-entry-error-wordpress-solution/), but I can’t figure out where to paste the code (<span class=”vcard author”><span class=”fn”></span></span>) for the author field.
Nothing in my code looks like what is suggested. Can you help me out please?
<?php if ( fp_get_settings( 'fp_show_post_author' ) == 1 ) { ?> <div class="entry-author"> <div class="author-avatar"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), 68 ); ?> </div> <div class="author-description"> <h4><?php printf( __( 'By %s', 'fairpixels' ), get_the_author() ); ?></h4> <?php the_author_meta( 'description' ); ?> <div id="author-link"> <a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author"> <?php printf( __( 'Posts by %s <span class="meta-nav">→</span>', 'fairpixels' ), get_the_author() ); ?> </a> </div><!-- /author-link --> </div><!-- /author-description --> </div><!-- /author-info -->
- The topic ‘Where to put hAtom author mark up?’ is closed to new replies.