diff --git a/archive-noticias.php b/archive-noticias.php index 970e826..255dd6e 100644 --- a/archive-noticias.php +++ b/archive-noticias.php @@ -13,8 +13,9 @@ $query = array( 'paged' => isset($params['paged']) ? $params['paged'] : 1, 'posts_per_page' => get_option('posts_per_page') // Usa la configuración de WordPress ); + + $context['posts_noticias'] = Timber::get_posts($query); 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); \ No newline at end of file diff --git a/views/templates/single.twig b/views/templates/single.twig index 7d7baa2..b87e680 100644 --- a/views/templates/single.twig +++ b/views/templates/single.twig @@ -21,7 +21,9 @@ -
+

{{ __('No se puede comentar', 'Sindikatua') }}

+ + {#
{% if post.comments %} @@ -39,7 +41,7 @@ {% else %} {% include 'partials/comment-form.twig' %} {% endif %} -
+
#} {% endblock %}