{"id":662405,"date":"2007-12-05T11:08:00","date_gmt":"2007-12-05T11:08:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cpmfetch-problem\/"},"modified":"2016-08-18T23:59:18","modified_gmt":"2016-08-18T23:59:18","slug":"cpmfetch-problem","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cpmfetch-problem\/","title":{"rendered":"cpmfetch problem"},"content":{"rendered":"<p>I add the code:<\/p>\n<pre><code>&lt;?php\n  include &quot;.\/gallery\/cpmfetch\/cpmfetch.php&quot;;\n  $objCpm = new cpm(&quot;.\/gallery\/cpmfetch\/cpmfetch_config.php&quot;);\n  $objCpm-&gt;cpm_viewLastAddedMedia(2,2);\n  $objCpm-&gt;cpm_close();\n?&gt;<\/code><\/pre>\n<p>to a text box in my sidebar and the result is:<\/p>\n<pre><code>$objCpm-&gt;cpm_viewLastAddedMedia(2,2);\n  $objCpm-&gt;cpm_close();\n?&gt;<\/code><\/pre>\n<p>I have tried using the plug in but get:<\/p>\n<p>Error: config file \/cpg specified but was not found<\/p>\n<p>I&#8217;m not sure what that means<\/p>\n","protected":false},"template":"","class_list":["post-662405","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/662405","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\/662405\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=662405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}