Rimosso var_dump rimosso limite temporare di un evento

This commit is contained in:
gine 2019-12-16 16:12:02 +01:00
parent 18a7b5319d
commit 3792c4855b

View file

@ -58,7 +58,9 @@ function set_ai1ecrss_where( $where, &$wp_query ){
$start = time()+ (7 * 24 * 60 * 60); $start = time()+ (7 * 24 * 60 * 60);
$end = time(); $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; 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_join', 'set_ai1ecrss_join',10,2 );
add_filter( 'posts_where', 'set_ai1ecrss_where', 10, 2 ); add_filter( 'posts_where', 'set_ai1ecrss_where', 10, 2 );
add_filter( 'posts_orderby', 'set_ai1ecrss_orderby' ); add_filter( 'posts_orderby', 'set_ai1ecrss_orderby' );