+<p><label><input type="radio" name="content" value="posts" /> <?php _e( 'Posts' ); ?></label></p>
+<ul id="post-filters" class="export-filters">
+ <li>
+ <label><span class="label-responsive"><?php _e( 'Categories:' ); ?></span>
+ <?php wp_dropdown_categories( array( 'show_option_all' => __('All') ) ); ?>
+ </label>
+ </li>
+ <li>
+ <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span>
+ <?php
+ $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'post'" );
+ wp_dropdown_users( array(
+ 'include' => $authors,
+ 'name' => 'post_author',
+ 'multi' => true,
+ 'show_option_all' => __( 'All' ),
+ 'show' => 'display_name_with_login',
+ ) ); ?>
+ </label>
+ </li>
+ <li>
+ <fieldset>
+ <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
+ <label for="post-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
+ <select name="post_start_date" id="post-start-date">
+ <option value="0"><?php _e( '— Select —' ); ?></option>
+ <?php export_date_options(); ?>
+ </select>
+ <label for="post-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label>
+ <select name="post_end_date" id="post-end-date">
+ <option value="0"><?php _e( '— Select —' ); ?></option>
+ <?php export_date_options(); ?>
+ </select>
+ </fieldset>
+ </li>
+ <li>
+ <label for="post-status" class="label-responsive"><?php _e( 'Status:' ); ?></label>
+ <select name="post_status" id="post-status">
+ <option value="0"><?php _e( 'All' ); ?></option>
+ <?php $post_stati = get_post_stati( array( 'internal' => false ), 'objects' );
+ foreach ( $post_stati as $status ) : ?>
+ <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
+ <?php endforeach; ?>
+ </select>
+ </li>
+</ul>
+
+<p><label><input type="radio" name="content" value="pages" /> <?php _e( 'Pages' ); ?></label></p>
+<ul id="page-filters" class="export-filters">
+ <li>
+ <label><span class="label-responsive"><?php _e( 'Authors:' ); ?></span>
+ <?php
+ $authors = $wpdb->get_col( "SELECT DISTINCT post_author FROM {$wpdb->posts} WHERE post_type = 'page'" );
+ wp_dropdown_users( array(
+ 'include' => $authors,
+ 'name' => 'page_author',
+ 'multi' => true,
+ 'show_option_all' => __( 'All' ),
+ 'show' => 'display_name_with_login',
+ ) ); ?>
+ </label>
+ </li>
+ <li>
+ <fieldset>
+ <legend class="screen-reader-text"><?php _e( 'Date range:' ); ?></legend>
+ <label for="page-start-date" class="label-responsive"><?php _e( 'Start date:' ); ?></label>
+ <select name="page_start_date" id="page-start-date">
+ <option value="0"><?php _e( '— Select —' ); ?></option>
+ <?php export_date_options( 'page' ); ?>
+ </select>
+ <label for="page-end-date" class="label-responsive"><?php _e( 'End date:' ); ?></label>
+ <select name="page_end_date" id="page-end-date">
+ <option value="0"><?php _e( '— Select —' ); ?></option>
+ <?php export_date_options( 'page' ); ?>
+ </select>
+ </fieldset>
+ </li>
+ <li>
+ <label for="page-status" class="label-responsive"><?php _e( 'Status:' ); ?></label>
+ <select name="page_status" id="page-status">
+ <option value="0"><?php _e( 'All' ); ?></option>
+ <?php foreach ( $post_stati as $status ) : ?>
+ <option value="<?php echo esc_attr( $status->name ); ?>"><?php echo esc_html( $status->label ); ?></option>
+ <?php endforeach; ?>
+ </select>
+ </li>
+</ul>
+
+<?php foreach ( get_post_types( array( '_builtin' => false, 'can_export' => true ), 'objects' ) as $post_type ) : ?>
+<p><label><input type="radio" name="content" value="<?php echo esc_attr( $post_type->name ); ?>" /> <?php echo esc_html( $post_type->label ); ?></label></p>
+<?php endforeach; ?>