'home', 'keywords' => [ 'entorno' => 'desarrollo' ] ]; $noAds = false; if ( is_tax() || is_category() || is_tag() ) { /* $term = get_queried_object(); $adunit = $term->slug . '/home'; */ $adsConfigArr['adunit'] = 'portadilla'; } if ( is_single() ) { /* $adunit = ''; if ( function_exists('yoast_get_primary_term_id') ) { $primary_term_id = yoast_get_primary_term_id(); if ( $primary_term_id ) { $primary_term = get_term( $primary_term_id ); $adunit .= $primary_term->slug . '/'; } } else { $categ = get_the_category(); if ( ! empty( $categ ) ) { $adunit = $categ[0]->slug . '/'; } } $adunit .= $post->post_name; */ $adsConfigArr['adunit'] = 'detalle'; $adsMarcas = newspaper_child_get_marcas(); $keywords = newspaper_child_get_keywords(); $adsModelos = array_unique($keywords['modelo']); $adsTags = array_unique($keywords['tag']); $adsConfigArr['keywords']['marca'] = newspaper_child_implode_first($adsMarcas); $adsConfigArr['keywords']['modelo'] = newspaper_child_implode_first($adsModelos); $adsConfigArr['keywords']['tag'] = newspaper_child_implode_first($adsTags); if (in_category('sin-publicidad')) { $noAds = true; } } $adsConfig = json_encode($adsConfigArr); ?>
Inicio Autores Publicaciones por J. Miguel Quintana

J. Miguel Quintana

J. Miguel Quintana
1 Publicaciones 0 COMENTARIOS