FIX search
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user