Structured Data error in Search Console, missing author, entry-title and update

Hi!
I’ve recently started my site, running Sydney with a child-theme. I love this theme, it was really easy to costumize, but I’m having troubles with structured data in Google Search Console.
Google Search Console tells me I have 3 type of structured data error on some pages.
Examples:
http://petsittingdiary.com/pet-sitting-services/home-pet-sitting/


  1. missing: updated
  2. missing: author
  3. missing: entry-title

I’ve checked the Internet trying to fix this problem, and found this post:

but I cannot find where the hentry mentioned in that article is, and I also have difficulty on finding the cotnent.php file and single.php in the child theme. Should I just directly copy and paste these files from the parent theme file to the child theme file, and then make changes?

Could anyone please help me with this?
the url to my site is http://petsittingdiary.com

Hello there,

Please refer to this topic: https://athemes.com/forums/topic/structured-data-errors-showing-in-google-search-console-webmaster-tools/ that might be what you’re looking for.

Regards,
Kharis

Hi Kharis,

Thanks for providing such informative article. I have followed your steps trying to solve the problem.

The following is what I did:

  1. I copied 4 files (content-single.php, content-page.php, content-search.php, content.php) from sydney parent theme to the sydney child theme.

  2. I edited these files and changed the line of code from <?php the_title( ‘<h1 class=“title-post”>’, ‘</h1>’ ); ?> to <?php the_title( ‘<h1 class=“title-post entry-title”>’, ‘</h1>’ ); ?>. But I can only find this code in content-page.php and content-single.php. So I didn’t do anything in content-search.php and content.php file.

  3. I copied the following into the function.php file:

/**
 * Prints HTML with meta information for the current post-date/time and author.
 */
function sydney_posted_on() {
	$time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
	if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
		$time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
	}

	$time_string = sprintf( $time_string,
		esc_attr( get_the_date( 'c' ) ),
		esc_html( get_the_date() ),
		esc_attr( get_the_modified_date( 'c' ) ),
		esc_html( get_the_modified_date() )
	);

	$posted_on = sprintf(
		_x( 'Posted on %s', 'post date', 'sydney' ),
		'<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a>'
	);

	$byline = sprintf(
		_x( '%s', 'post author', 'sydney' ),
		'<span class="author vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author() ) . '</a></span>'
	);

	echo '<span class="posted-on">' . $posted_on . '</span><span class="byline"> ' . $byline . '</span>';

	if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
		echo '<span class="comments-link">';
		comments_popup_link( __( 'Leave a comment', 'sydney' ), __( '1 Comment', 'sydney' ), __( '% Comments', 'sydney' ) );
		echo '</span>';
	}

	$categories_list = get_the_category_list( __( ', ', 'sydney' ) );
	if ( $categories_list && sydney_categorized_blog() ) {
		printf( '<span class="cat-links">' . __( 'Posted in %1$s', 'sydney' ) . '</span>', $categories_list );
	}
}
  1. According to your guidelines, I made the following changes in the above code in the function.php:
    From <span class="author vcard"> To <span class="author post-author">. Then, From <span class="posted-on"> To <span class="posted-on post-date updated">.

The above are all the changes I made according to your guidelines. And I have login the Google Search Console, the errors are still existing. Perhaps, I made something wrong, or I comprehend something incorrect. Could you kindly offer me further help? This is my site. This is the tester I used. But actually I don’t really understand how to read the message showed in the testing page. I just know the errors from a logged in google search console page.

Hello there,

Let’s start analyzing this page: http://petsittingdiary.com/follow-me-my-buddy/

The result shows no error https://search.google.com/structured-data/testing-tool#url=http%3A%2F%2Fpetsittingdiary.com%2Ffollow-me-my-buddy%2F

Cloudup

Maybe it was just a matter of server cache you enabled from the WP Super Cache. Once you applied the changes, please be sure that you delete your site cache. Then try to validate again.

Regards,
Kharis

Hi Kharis,

Thanks for doing the test for me and the detailed response. After your advice, I have deleted the cache through the WP super cache. However, the errors showing in this page has nothing changed, still 16. But as you can see from the picture that the last detected date has not been updated. Perhaps, it takes sometime to detect. Let me get back to you later if there is anything changes.

Hi there,

The above problem is still there. The errors showed on Google Search Console. Could you help solve the problem, please? Thanks a lot!

Hi,

Can anyone give me some help, please…

I would like to apologize in advance for the long delay.

What URL did you test?

Regards,
Kharis

my site URL is petsittingdiary.com

I don’t know if it is what you mean? I just logged in Google Search Console and click in to Structured Data, and then it shows me these errors.

I asked because I saw different result on https://search.google.com/structured-data/testing-tool. Please see the below screencast.

Cloudup

Regards,
Kharis

Highly appreciate for your efforts!

But why I can still find the errors in my Google Search Console page? Do I just need to ignore them? Are they negatively affecting SEO?

I believe our Sydney theme meets the structured data requirements. I am clueless why those two tools produce different result. You might need to consult to the Google’s support forum https://productforums.google.com/forum/#!forum/webmaster-id.

Regards,
Kharis

Great thanks for your suggestion!

You’re always welcome here.

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis