From 3792c4855bb8e5cfb5a6de0caf3d67efd682297f Mon Sep 17 00:00:00 2001 From: gine Date: Mon, 16 Dec 2019 16:12:02 +0100 Subject: [PATCH] Rimosso var_dump rimosso limite temporare di un evento --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index d04fd46..2a43013 100644 --- a/index.php +++ b/index.php @@ -58,7 +58,9 @@ function set_ai1ecrss_where( $where, &$wp_query ){ $start = time()+ (7 * 24 * 60 * 60); $end = time(); - $where .= ' AND '. $db_prefix.'ai1ec_events.start <= \''.$start.'\'' .' AND '. $db_prefix.'ai1ec_events.end >= \''.$end.'\''; + //$where .= ' AND '. $db_prefix.'ai1ec_events.start <= \''.$start.'\'' .' AND '. $db_prefix.'ai1ec_events.end >= \''.$end.'\''; + $where .= ' AND '. $db_prefix.'ai1ec_events.start <= \''.$start.'\''; + return $where; } @@ -89,7 +91,7 @@ function getEvent($cat){ ); } - var_dump($args); + //var_dump($args); add_filter( 'posts_join', 'set_ai1ecrss_join',10,2 ); add_filter( 'posts_where', 'set_ai1ecrss_where', 10, 2 ); add_filter( 'posts_orderby', 'set_ai1ecrss_orderby' );