get_results( $wpdb->prepare( " SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month FROM $wpdb->posts WHERE post_type = %s AND post_status != 'auto-draft' ORDER BY post_date DESC ", $post_type ) ); $month_count = count( $months ); if ( !$month_count || ( 1 == $month_count && 0 == $months[0]->month ) ) return; foreach ( $months as $date ) { if ( 0 == $date->year ) continue; $month = zeroise( $date->month, 2 ); echo '
' . $wp_locale->get_month( $month ) . ' ' . $date->year . '
'; } } ?>
__('All') ) ); ?>
get_results( "SELECT DISTINCT post_author FROM $wpdb->posts WHERE post_type = 'post'" ); wp_dropdown_users( array( 'include' => '', 'name' => 'post_author', 'multi' => true, 'show_option_all' => __( 'All' ), 'show' => 'display_name_with_login', 'id' => 'post_author', 'class' => 'post-author', ) ); ?>
false ), 'objects' ); foreach ( $post_stati as $status ) : ?>
label ); ?>
get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" ); wp_dropdown_users( array( 'include' => '', 'name' => 'page_author', 'multi' => true, 'show_option_all' => __( 'All' ), 'show' => 'display_name_with_login', 'id' => 'page_author', 'class' => 'page-author', ) ); ?>
label ); ?>
false, 'can_export' => true ), 'objects' ) as $post_type ) : ?>
label ); ?>