Rimosso var_dump rimosso limite temporare di un evento
This commit is contained in:
parent
18a7b5319d
commit
3792c4855b
1 changed files with 4 additions and 2 deletions
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue