Title: [Bug] Invalid hatom-entry structure
Last modified: August 21, 2016

---

# [Bug] Invalid hatom-entry structure

 *  [Nicolas Bernier](https://wordpress.org/support/users/nicolasbernier/)
 * (@nicolasbernier)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/)
 * Hi
 * I’m experiencing 2 issues with Google’s [rich snippet validator](http://www.google.com/webmasters/tools/richsnippets)
   with Responsive theme version 1.9.4.8 .
 * 1. The hatom-entry structure in the function **responsive_post_meta_data()** 
   is malformed :
    - The modification time is set as the _bookmark_ name, instead of the title
    - The _updated_ date format is incorrect, must be ISO 8601, has localized date
      instead (3 janvier, 2014)
 * Here is the fixed function:
 *     ```
       function responsive_post_meta_data()
       {
       	printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ),
       			'meta-prep meta-prep-author posted',
       			sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="timestamp updated"><span class="value-title" title="%3$s"></span>%4$s</span></a>',
       					 esc_url( get_permalink() ),
       					 esc_attr( get_the_title() ),
       					 esc_html( get_the_date('c')),
       					 esc_html( get_the_date() )
       			),
       			'byline',
       			sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
       					 get_author_posts_url( get_the_author_meta( 'ID' ) ),
       					 sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
       					 esc_attr( get_the_author() )
       			)
       	);
       }
       ```
   
 * 2. The second issue is in **header.php** : the hfeed class in the container div
   should be enabled only for singular pages (post, page, attachment…), otherwise
   the validator triggers an error
 * `<div id="container"<?php if (is_singular()) echo ' class="hfeed"'; ?>>`
 * I fixed this in my child theme but it would be great to have this fixed in the
   next reponsive version.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579426)
 * I am having a look at it.
 *  [Tingwe](https://wordpress.org/support/users/tingwe/)
 * (@tingwe)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579430)
 * [@nicolas](https://wordpress.org/support/users/nicolas/).bernier
 * This bug already mention many times in responsive-free forum with no solution.
 * Nice fixed!
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579431)
 * As per the theme developer’s request, please post in the theme’s dedicated forum:
   [http://cyberchimps.com/forum/free/responsive/](http://cyberchimps.com/forum/free/responsive/)
 *  [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579433)
 * [@tingwe](https://wordpress.org/support/users/tingwe/) This is the first I have
   heard of it. Please share links where this was reported.
 *  [Tingwe](https://wordpress.org/support/users/tingwe/)
 * (@tingwe)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579441)
 * [@grapplerulrich](https://wordpress.org/support/users/grapplerulrich/)
 * `http://cyberchimps.com/?s=Missing+required+field&forums=on&docs=on`
 *  [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * (@grapplerulrich)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579442)
 * [@tingwe](https://wordpress.org/support/users/tingwe/) I will reply to your [post on the cyberchimps forum](http://cyberchimps.com/forum-topic/google-webmaster-tools-structured-data/).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Bug] Invalid hatom-entry structure’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/responsive/6.3.8/screenshot.png)
 * Responsive
 * [Support Threads](https://wordpress.org/support/theme/responsive/)
 * [Active Topics](https://wordpress.org/support/theme/responsive/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/responsive/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/responsive/reviews/)

## Tags

 * [format](https://wordpress.org/support/topic-tag/format/)
 * [hatom](https://wordpress.org/support/topic-tag/hatom/)
 * [microdata](https://wordpress.org/support/topic-tag/microdata/)
 * [Rich Snippet](https://wordpress.org/support/topic-tag/rich-snippet/)

 * 6 replies
 * 4 participants
 * Last reply from: [Ulrich](https://wordpress.org/support/users/grapplerulrich/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/bug-invalid-hatom-entry-structure/#post-4579442)
 * Status: not resolved