{"id":701664,"date":"2008-02-24T14:04:28","date_gmt":"2008-02-24T14:04:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/random-picture\/"},"modified":"2016-08-19T00:24:51","modified_gmt":"2016-08-19T00:24:51","slug":"random-picture","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/random-picture\/","title":{"rendered":"Random picture"},"content":{"rendered":"<p>I want to include a random picture from my gallery.  A user here showed the code as<br \/>\n&lt;?php include(&#8216;http:\/\/www.mydomain.com\/gallery\/block-random.php&#8217;); ?&gt;<br \/>\nThis worked until my host turned off the include urls.  My gallery is a sub of my main and I can&#8217;t seem to get the relative path correct.<br \/>\nI have tried everything my little brain can think of and still no luck.<br \/>\nI tried ..\/..\/..\/ ad naseum.  I tried using wpurl and then I still get &#8220;URL file-access is disabled in the server configuration&#8221;<br \/>\nhELP<\/p>\n","protected":false},"template":"","class_list":["post-701664","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/701664","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\/701664\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=701664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}