hola trato de agregar el last images con el cpmfetch a mi wordpress y me sale error
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5
Warning: include(http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5
Warning: include() [function.include]: Failed opening 'http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 5
Fatal error: Class 'cpm' not found in /home/demilova/public_html/sitio/wp-content/themes/Infinity-theme/left.php on line 6
y el codigo que pongo es este
<?php
include "http://demilovato.com.mx/galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("http://demilovato.com.mx/galeria/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(1,4);
$objCpm->cpm_close();
?>
espero me peudan ayudar gracias
lo pude solucionar solo agregue este código
<?php
include "/home/demilova/public_html/galeria/cpmfetch/cpmfetch.php";
$objCpm = new cpm("/home/demilova/public_html/galeria/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,2);
$objCpm->cpm_close();
?>
de todos modos gracias
Saludos
Hola diegodk,
Disculpá la demora en contestar. Muchas gracias por volver y solucionar el tema, sirve para futuras referencias.
Saludos!