{"id":13518954,"date":"2020-10-11T11:33:06","date_gmt":"2020-10-11T11:33:06","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/echo-array-in-an-array\/"},"modified":"2020-10-11T11:33:06","modified_gmt":"2020-10-11T11:33:06","slug":"echo-array-in-an-array","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/echo-array-in-an-array\/","title":{"rendered":"echo array in an array"},"content":{"rendered":"<p>Thank you so much for creating this fine working widget, Mr Meo. <\/p>\n<p>I wanted to ask you for some advice: I wanted to edit the default layout.php. But I don\u2019t know how to echo the array &#8220;genres&#8221; in the array &#8220;results&#8221; of this json feed https:\/\/rss.itunes.apple.com\/api\/v1\/lu\/books\/top-paid\/all\/10\/explicit.json . To echo the Release Date for example, this is working &lt;div class=&#8221;ff-feed-item__date&#8221;&gt;&lt;?php echo &#8216;Release Date:&#8217;. &#8216;&lt;br \/&gt;&#8217; . $item-&gt;releaseDate ?&gt;, but when I try to acces the subarray &#8220;genres&#8221; &lt;\/div&gt;&lt;div class=&#8221;ff-feed-item__genre&#8221;&gt;&lt;?php echo &#8216;Genre:&#8217;. &#8216;&lt;br \/&gt;&#8217; . $item-&gt;genres ?&gt;&lt;\/div&gt;, it only shows &#8220;array&#8221; as a result.<\/p>\n<p>Could You give me a hint, please?<br \/>\nBest regards,<br \/>\nArtistman<\/p>\n","protected":false},"template":"","class_list":["post-13518954","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/13518954","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\/13518954\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=13518954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}