Closed kjtolsma closed 10 years ago
We did some improvements regarding this issue:
$query = new WP_Query( array(
'post_type' => 'pronamic_event',
'pronamic_event_date_after' => strtotime( 'today' ), // default
'orderby' => 'pronamic_event_start_date', // default
) );
$query = new WP_Query( array(
'post_type' => 'pronamic_event',
'pronamic_event_date_after' => strtotime( '-1 month' ),
'orderby' => 'date',
) );
$query = new WP_Query( array(
'post_type' => 'pronamic_event',
'pronamic_event_date_after' => false,
'orderby' => 'pronamic_event_start_date',
) );
Type: int
Default: strtotime( 'today' )
Type: string
Default: pronamic_event_start_date
The Pronamic Events will automatic add the event-ended
post class if an
event is ended.
Is it possible to make an option for showing all events? Events in the past included. Maybe we can add an extra class to those specific articles.