Hello Google swears on Wp-postratings plugin microdata. enter image description here

enter image description here

It seems that I found the code, but I do not know how to fix it. If you substitute such a line - everything is OK:

<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject"> <meta itemprop="url" content="https://***-auto.com/wp-content/uploads/2016/12/logo-300x300.jpg" /> </div> 

but how to do it dynamically?

 $site_logo = apply_filters( 'wp_postratings_site_logo', $site_logo ); $post_meta .= '<div style="display: none;" itemprop="publisher" itemscope itemtype="https://schema.org/Organization">'; $post_meta .= '<meta itemprop="name" content="' . get_bloginfo( 'name' ) . '" />'; $post_meta .= '<div itemprop="logo" itemscope itemtype="https://schema.org/ImageObject">'; $post_meta .= '<meta itemprop="url" content="' . $site_logo . '" />'; $post_meta .= '</div>'; $post_meta .= '</div>'; 

It seems that I found the code, but I do not know how to fix it. if you substitute such a line - everything is OK: ** -

  • It seems that I found the code, but I do not know how to fix it. If you substitute such a line - everything is ok: ** <div itemprop = "logo" itemscope itemtype = " schema.org/ImageObject"><meta itemprop =" url "content =" https: //***-auto.com/ wp-content / uploads / 2016/12 / logo-300x300.jpg "/> </ div> - Yuri
  • Attach the code in question in the form of text. Click the править button in the question and paste the appropriate code into the question body. - Michael Rebrov

0