FIX search

This commit is contained in:
2025-10-20 07:36:24 +00:00
parent 2c4d0b8308
commit 726b61cde8
3 changed files with 23 additions and 14 deletions

View File

@@ -85,6 +85,20 @@ class StarterSite extends Site {
}, 10, 2);
/** FIN *************POST "QUÉ ES LA CNT" */
// *** SOLO USAR UNA VEZ PARA LIMPIAR. NO FUNCIONABA LA PAGINACIÓN DE SEARCH.
// add_action('init', function() {
// add_rewrite_rule(
// 'page/([0-9]+)/?$',
// 'index.php?paged=$matches[1]',
// 'top'
// );
// // Solo ejecuta una vez, luego comenta estas líneas
// error_log('✅ flush rewrite rules');
// flush_rewrite_rules(false);
// }, 10);
parent::__construct();
}
@@ -716,7 +730,7 @@ class StarterSite extends Site {
public function getVideosSlider() {
$post = Timber::get_post();
error_log('✅ getVideosSlider - ID Página: ' . $post->ID);
//error_log('✅ getVideosSlider - ID Página: ' . $post->ID);
return [
'posts' => Timber::get_posts([
@@ -806,6 +820,4 @@ class StarterSite extends Site {
return $twig;
}
}