how to search categories by date?

    <div class="row">
            <form role="form">
              <div class="col-md-3">

            <div class="form-group">
                $category = get_category_by_slug( 'newspaper' );

                $args = array(
                'type'                     => 'post',
                'child_of'                 => $category->term_id,
                'orderby'                  => 'name',
                'order'                    => 'DESC',
                'hide_empty'               => FALSE,
                'hierarchical'             => 1,
                'taxonomy'                 => 'category',
                'show_option_none'         =>'Select newspaper',
                'class'                    =>'form-control',
                'id'                       =>'guest',


          wp_dropdown_categories( $args);?>

              <div class="col-md-3">
                <div class="form-group"   role="search" action="<?php echo esc_url( home_url( '/' ) ); ?>" >
                  <label class="sr-only" for="guest">Date</label>
                  <div class='input-group date' id='datetimepicker1'>
                   <input type="text" name="date" id="datepicker1" class="datepicker form-control" placeholder="YYYY/MM/DD"required>
                    <span class="input-group-addon">
                      <span class="glyphicon glyphicon-calendar"></span>

              <div class="col-md-2">
                <input type="submit" class="btn btn-primary btn-primary" placeholder="submit buttton" value="Newspaper" />





Please signup or login to answer this question.

Signup for an account and start participating in our site today!

Social Signup

You can also login with your Facebook, Twitter or Linkedin account

Log in with Facebook