CHANGE hide comments
This commit is contained in:
@ -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);
|
||||
@ -21,7 +21,9 @@
|
||||
</section>
|
||||
|
||||
<!-- 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">
|
||||
{% if post.comments %}
|
||||
<!-- <h2>Comentarios</h2> -->
|
||||
@ -39,7 +41,7 @@
|
||||
{% else %}
|
||||
{% include 'partials/comment-form.twig' %}
|
||||
{% endif %}
|
||||
</section>
|
||||
</section> #}
|
||||
</article>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user