From e4a0634bc656f7733bd6bc058519dfc25c393754 Mon Sep 17 00:00:00 2001 From: gustavo Date: Tue, 21 Oct 2025 13:29:47 +0000 Subject: [PATCH] =?UTF-8?q?FIX=20paginaci=C3=B3n=20videos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archive-videos.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/archive-videos.php b/archive-videos.php index 6d485c1..7a336f0 100644 --- a/archive-videos.php +++ b/archive-videos.php @@ -5,19 +5,7 @@ $context = Timber::context(); -// Debug -global $wp_query; -// error_log('🔍 Language: ' . (function_exists('pll_current_language') ? pll_current_language() : 'no polylang')); -// error_log('🔍 Post type: ' . get_query_var('post_type')); -// error_log('🔍 Posts found by WP: ' . $wp_query->found_posts); - -// WordPress ya tiene la paginación correcta en la query -$context['videos'] = Timber::get_posts([ - 'post_type' => 'videos', - 'posts_per_page' => -1, - 'lang' => '' // Importante: vacío para obtener todos -]); - +$context['videos'] = Timber::get_posts(); error_log('✅ archive-videos - Posts: ' . count($context['videos'])); Timber::render('templates/page-videos.twig', $context);