{"id":8572626,"date":"2016-12-20T15:43:18","date_gmt":"2016-12-20T15:43:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/http-500-error-26\/"},"modified":"2016-12-20T15:43:50","modified_gmt":"2016-12-20T15:43:50","slug":"http-500-error-26","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/http-500-error-26\/","title":{"rendered":"HTTP 500 ERROR"},"content":{"rendered":"<p>Hello,<\/p>\n<p>I followed all steps. So far so good. But ones that I put the following php code in the <strong>single.php<\/strong> file of my <a href=\"https:\/\/srd.wordpress.org\/themes\/twentyfourteen\/\" target=\"_blank\">Twenty Fourteen Theme<\/a> I get a HTTP 500 ERROR when I view my posts. What am I doing wrong?<\/p>\n<p>&lt;&#8212;&#8212;- php code I inserted &#8212;&#8212;-&gt;<br \/>\n&lt;?php $galleryArray = get_post_gallery_ids($post-&gt;ID); ?&gt;<br \/>\n&lt;?php foreach ($galleryArray as $id) { ?&gt;<\/p>\n<p>    <img \/>&#8220;&gt;<\/p>\n<p>&lt;?php } ?&gt;<br \/>\n&lt;&#8212;&#8212;- end php code I inserted &#8212;&#8212;-&gt;<\/p>\n<p>Thanx!<\/p>\n","protected":false},"template":"","class_list":["post-8572626","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8572626","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8572626\/revisions"}],"predecessor-version":[{"id":8572629,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8572626\/revisions\/8572629"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8572626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}