This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Carga de Disqus solo en posts | |
/** | |
* Evita que se carguen los comentarios Disqus donde no haga falta | |
*/ | |
function cl_disqus_comments() { | |
// Si estamos en un posts con los comentarios abiertos es necesario el código | |
if ( is_singular( array( 'post' ) ) && comments_open() ) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cl_add_sitemap_yoast() { | |
$mes = date( 'm' ); | |
$anhio = date( 'Y' ); | |
$res = ''; | |
$url_raiz = 'https://www.fotodng.com/dng-includes/sitemaps/'; | |
$array_sitemaps[] = 'concurso_dng_06-sitemap_dng.xml'; | |
$array_sitemaps[] = 'concurso_dng_07-sitemap_dng.xml'; | |
$array_sitemaps[] = 'concurso_dng_08-sitemap_dng.xml'; | |
$array_sitemaps[] = 'concurso_dng_09-sitemap_dng.xml'; | |
$array_sitemaps[] = 'concurso_dng_10-sitemap_dng.xml'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//*------------------------------------------------*/ | |
/* Cambiamos la url de upload para que sirva | |
* los archivos desde el CDN | |
/*----------------------------------------------*/ | |
function cl_cdn_upload_url() { | |
return 'https://cdnc2.dng.pw/wp-content/uploads'; | |
} | |
if ( ! is_admin() ) { // Si no estamos en el panelde administración |
NewerOlder