{"id":6430556,"date":"2015-08-13T16:34:06","date_gmt":"2015-08-13T16:34:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/image-code-not-working\/"},"modified":"2016-08-30T16:47:38","modified_gmt":"2016-08-30T16:47:38","slug":"image-code-not-working","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/image-code-not-working\/","title":{"rendered":"Image Code not working"},"content":{"rendered":"<p>Hi.<\/p>\n<p>I&#8217;m using the latest version of the WordPress. The plugin works great and I love it. But one function doesn&#8217;t work: displaying images:<\/p>\n<pre><code>&lt;?php if($atts[&#039;image_id&#039;]): ?&gt;\n\t\t\t&lt;img src=&quot;&lt;?php wp_get_attachment_image_src($atts[&#039;image_id&#039;], &#039;full&#039;) ?&gt;&quot; alt=&quot;&quot; \/&gt;\n\t\t\t&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>..doesnt give me an image.<\/p>\n<p><code>&lt;?php echo $atts[&#039;image_id&#039;] ?&gt;<\/code><\/p>\n<p>however does give me the id of the image.<\/p>\n<p>I&#8217;m using the original code, provided in the example.php<\/p>\n<p>https:\/\/wordpress.org\/plugins\/minimal-shortcode-ui\/<\/p>\n","protected":false},"template":"","class_list":["post-6430556","topic","type-topic","status-closed","hentry","topic-tag-image"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6430556","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\/6430556\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6430556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}