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' );