CHANGE hide comments

This commit is contained in:
2025-10-22 10:03:03 +00:00
parent b57069589e
commit 0027c75833
2 changed files with 6 additions and 3 deletions

View File

@ -13,8 +13,9 @@ $query = array(
'paged' => isset($params['paged']) ? $params['paged'] : 1, 'paged' => isset($params['paged']) ? $params['paged'] : 1,
'posts_per_page' => get_option('posts_per_page') // Usa la configuración de WordPress 'posts_per_page' => get_option('posts_per_page') // Usa la configuración de WordPress
); );
$context['posts_noticias'] = Timber::get_posts($query); $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']));
// error_log('✅ archive-noticias.php - Posts: ' . count($context['posts_noticias']));
Timber::render('templates/page-noticias.twig', $context); Timber::render('templates/page-noticias.twig', $context);

View File

@ -21,7 +21,9 @@
</section> </section>
<!-- comments --> <!-- comments -->
<section class="comment-box mt-5 p-2 border-dark border-top"> <p>{{ __('No se puede comentar', 'Sindikatua') }}</p>
{# <section class="comment-box mt-5 p-2 border-dark border-top">
<div class="comments"> <div class="comments">
{% if post.comments %} {% if post.comments %}
<!-- <h2>Comentarios</h2> --> <!-- <h2>Comentarios</h2> -->
@ -39,7 +41,7 @@
{% else %} {% else %}
{% include 'partials/comment-form.twig' %} {% include 'partials/comment-form.twig' %}
{% endif %} {% endif %}
</section> </section> #}
</article> </article>
</div> </div>
{% endblock %} {% endblock %}