1

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").

  $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?

unor
  • 92,415
  • 26
  • 211
  • 360
moloch
  • 13
  • 2

2 Answers2

0

It seems that Google has recently changed the requirements for Article rich snippets.

See this link for more information : https://productforums.google.com/forum/#!topic/webmasters/ltbw0gUvReM

And this one for documentation : https://developers.google.com/structured-data/rich-snippets/articles#article_markup_properties

Hope it helps.

Edit for logo :

Follow this link to know how to set up the logo : http://schema.org/logo

JazZ
  • 4,469
  • 2
  • 20
  • 40
  • Hi Adrien, thanks for your suggestion. I've tryed anything but I'm still here. – moloch Apr 19 '16 at 18:08
  • Hi Adrien, thanks for your suggestion. I've tried everything but I'm still here. I've noticed that sd testing tool highlights "Logo" as required from "Publisher [Things]" attribute but I wasn't able to fix it. – moloch Apr 19 '16 at 18:14
  • 1
    Sometimes you just have to insist, I did it! $payload["Publisher"] = array( "@type" => "Organization", "name" => "Contactalens", "logo" => array( "@type" => "ImageObject", "url" => "http://www.contactalens.com/wp-content/uploads/contactalogo1.png" ) ); } – moloch Apr 19 '16 at 18:25
0

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.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360