Schema.org properties “logo”, “mainEntityOfPage”, “dateModified” give error in Google SDTT

Following a tutorial I integrated the structured data in my WordPress website but when I run the google sd testing tool I continue to get an error that I can not fix on the logo and other minor things.

Here is my code (for what regards the “Article”).

Read More
  $payload["@type"] = "Article";
  $payload["url"] = $post_url;
  $payload["author"] = array(
      "@type" => "Person",
      "name" => $author_data->display_name,
      );
  $payload["headline"] = $post_data->post_title;
  $payload["datePublished"] = $post_data->post_date;
  list($width, $height) = getimagesize( $post_thumb );
  $payload["image"] = array(
  "@type" => "ImageObject",
  "url" => $post_thumb,
  "height" => "350",
  "width" => "590");
  $payload["ArticleSection"] = $category[0]->cat_name;
  $payload["Publisher"] = "MyWebsite";

All works good but I got this error/warnings:

logo: mancante e obbligatorio (missing and required
dateModified: mancante e consigliato (Missing and recommended)
mainEntityOfPage: mancante e consigliato (Missing and recommended)

Can someone suggest me how to complete my code?

Related posts

2 comments

  1. The messages from the Google SDTT tell you everything you need to know.

    Google requires the logo property (details) and recommends to provide the dateModified (details) and the mainEntityOfPage (details) properties.

    Note that Google requires/recommends this only for their search result features. From the Schema.org perspective, it’s perfectly fine not to provide these properties.

Comments are closed.