Title: sokae's Replies | WordPress.org

---

# sokae

  [  ](https://wordpress.org/support/users/sokae/)

 *   [Profile](https://wordpress.org/support/users/sokae/)
 *   [Topics Started](https://wordpress.org/support/users/sokae/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sokae/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sokae/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sokae/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sokae/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sokae/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] NewsArticle converted to BlogPosting](https://wordpress.org/support/topic/newsarticle-converted-to-blogposting/)
 *  [sokae](https://wordpress.org/support/users/sokae/)
 * (@sokae)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/newsarticle-converted-to-blogposting/#post-7115213)
 * where to paste the code? in which file ?
 * add_filter( ‘amp_post_template_metadata’, ‘xyz_amp_modify_json_metadata’, 10,
   2 );
 * function xyz_amp_modify_json_metadata( $metadata, $post ) {
    $metadata[‘@type’]
   = ‘NewsArticle’;
 *  $metadata[‘publisher’][‘logo’] = array(
    ‘@type’ => ‘ImageObject’, ‘url’ => 
   get_template_directory_uri() . ‘/images/my-amp-metadata-logo.png’, ‘height’ =
   > 60, ‘width’ => 600, ); return $metadata; }
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Amp pages not showing on Google](https://wordpress.org/support/topic/amp-pages-not-showing-on-google/)
 *  [sokae](https://wordpress.org/support/users/sokae/)
 * (@sokae)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/amp-pages-not-showing-on-google/#post-7117548)
 * I have the same problem 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Structured Data Testing Tool "Logo Error"](https://wordpress.org/support/topic/structured-data-testing-tool-logo-error/)
 *  Thread Starter [sokae](https://wordpress.org/support/users/sokae/)
 * (@sokae)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/structured-data-testing-tool-logo-error/#post-7117547)
 * Hello Leon2017, thanks for your help. But the problem is on
 * <script type=”application/ld+json”>{“@context”:”http:\/\/schema.org”,”@type”:”
   BlogPosting”,”mainEntityOfPage”:”xxxx”,”publisher”:{“@type”:”Organization”,”name”:”
   xxx”},”headline”:”xxx”,”datePublished”:”2016-02-28T11:50:51+00:00″,”dateModified”:”
   2016-02-28T11:50:51+00:00″,”author”:{“@type”:”Person”,”name”:”xxx”},”image”:{“@
   type”:”ImageObject”,”url”:”xxx”,”width”:768,”height”:432}}</script>
 * On my AMP page doesn’t appear the info: “logo”:{“@type”:”ImageObject”,”url”:”
   xxx”,”width”:x,”height”:x}}
 * Why? Any solutions?

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