<?php get_header();?>
<section class="listing-sec">
 <div class="container"> 
  <div class="row">
  <?php
// Get data from URL into variables
   $_cat = $_GET['cat'] != '' ? $_GET['cat'] : '';
   $_book = $_GET['book'] != '' ? $_GET['book'] : '';

// Start the Query
$v_args = array(
        'post_type'     =>  'book', 
        's'             =>  $_book, // looks into everything with the keyword from your 'name field'
        'tax_query' => array(
            array(
            'taxonomy' => 'book-category', 
            'field' => 'term_id',
            'terms' => $_cat
             )
          )
    );
      $loop = new WP_Query( $v_args );
      if($loop->have_posts()) : while($loop->have_posts()) : $loop->the_post();
      ?>
       <p class="col-md-12 alert alert-success"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></p>
      <?php  endwhile; ?>
      <?php else :  ?>
          <p class="col-md-12 alert alert-danger">No Result Found!</p>
      <?php endif; wp_reset_postdata(); ?>
  </div>
</div>
</section>
<?php get_footer(); ?>