��<div style="background: #ffe438; margin-top: -30px; padding-top: 30px;"> <div class="ads wrapper"> <?php mr_ads_sections_01(); ?> </div> </div> <!-- section title --> <div class="section-title archive"> <?php $post_type = get_post_type(); if ( is_category() ) { $section_title = single_cat_title('', false); } if ( is_tag() ) { $section_title = single_tag_title('', false); } if ( is_author() ) { $author_name = get_the_author(); $section_title = 'Contenido de: '. $author_name; } $search_query = get_search_query(); if ($search_query) { $section_title = 'Resultados para: <span>' . $search_query .'</span>'; } if ( is_post_type_archive() ) { $post_type = get_post_type(); if ( $post_type ) { $post_type_label = get_post_type_object($post_type)->labels->name; $section_title = $post_type_label; } } // Fix: Inicializar variable slug si no est� definida if (!isset($slug)) { $slug = ''; // Intentar obtener el slug seg�n el contexto if (is_category()) { $category = get_queried_object(); $slug = $category->slug; } elseif (is_tag()) { $tag = get_queried_object(); $slug = $tag->slug; } elseif (is_author()) { $author = get_queried_object(); $slug = $author->user_nicename; } } echo '<div class="wrapper"><h1 class="page-title">'. $section_title .'</h1></div>'; ?> </div> <div class="ads wrapper"> <?php mr_ads_sections_02(); ?> </div> <!-- archive container --> <div class="content content--aside archive <?php echo $slug; ?>"> <div class="wrapper"> <!-- archive loop container --> <div class="loop loop--std archive-loop"> <?php $count = 0; while (have_posts()) : the_post(); $count++; get_template_part('parts/post_item/std'); endwhile; gr_pagination_nav_list(); ?> </div> <!-- aside --> <aside class="aside"> <?php get_template_part('widgets/last-posts'); mr_ads_sections_09(); get_template_part('widgets/suscribe'); mr_ads_sections_10(); ?> </aside> </div> </div> <div class="ads wrapper"> <?php mr_ads_sections_03(); ?> </div>