{"id":8519632,"date":"2016-12-06T12:32:36","date_gmt":"2016-12-06T12:32:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/featured-image-external-url-2\/"},"modified":"2016-12-06T12:32:36","modified_gmt":"2016-12-06T12:32:36","slug":"featured-image-external-url-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/featured-image-external-url-2\/","title":{"rendered":"Featured image external url"},"content":{"rendered":"<p>Hi everyone!!<\/p>\n<p>I&#8217;m having really big issues to set the featured image for the amp version of a post. I have my own plugin for gallery. I don&#8217;t use WordPress Gallery, so I don&#8217;t have a thumbnail imagen for each post. My images are in the same server, but another directory (inside plugin directory).<\/p>\n<p>I&#8217;m trying to set @type&#8221;:&#8221;ImageObject&#8221;,&#8221;url&#8221;:first-image-of-the-post.jpg but I can&#8217;t.<\/p>\n<p>I can get the url of the first image of the post, and I can show it automatically in my single.php file of the AMP theme. My problem is, I don&#8217;t know how to change application\/ld+json to set that url.<\/p>\n<p>I&#8217;m using: AMP 0.4.2 and Yoast SEO 3.1. which also can do changes on AMP version.<\/p>\n<p>I hope you could understand me and help me. Sorry for my English.<\/p>\n<p>Regards!! \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-8519632","topic","type-topic","status-publish","hentry","topic-tag-featured-image"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8519632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8519632\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8519632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}