wordpress author related taxonomy posts
<?php
global $post;
$author_id=$post->post_author;
$args = array(
'post_type' => 'deals',
'author'=> $author_id
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
the_title();
endwhile;
//wp_reset_query();
endif;
?>
<?php
global $post;
$author_id=$post->post_author;
$args = array(
'post_type' => 'deals',
'author'=> $author_id
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
the_title();
endwhile;
//wp_reset_query();
endif;
?>