ADD pages conflictos laborales

This commit is contained in:
2025-10-20 09:09:04 +00:00
parent ffcc1d0f0a
commit 10dbf60c80
6 changed files with 121 additions and 5 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
<?php
/**
* Category 'noticias'
* Archive 'noticias'
*/
global $params;
$context = Timber::context();
@@ -14,6 +14,7 @@ $query = array(
'posts_per_page' => get_option('posts_per_page') // Usa la configuración de WordPress
);
$context['posts_noticias'] = Timber::get_posts($query);
error_log('✅ category-noticias.php - Posts: ' . count($context['posts_noticias']));
error_log('✅ archive-noticias.php - Posts: ' . count($context['posts_noticias']));
// error_log('✅ archive-noticias.php - Posts: ' . count($context['posts_noticias']));
Timber::render('templates/page-noticias.twig', $context);