'post',
'posts_per_page' => '-1',
'post_status' => 'publish',
's' => get_search_query(),
'order' => 'DESC',
);
}elseif (in_array('author', $classes)) {
$author_id = $post->post_author;
$args = array(
'post_type' => 'post',
'author' => $author_id,
'post_status' => 'publish',
'paged' => $paged,
'category_name' => $term->slug,
'order' => 'DESC',
);
}elseif (in_array('search-no-results', $classes)) {
get_template_part( 'templates/content', 'none' );
}elseif (in_array('date', $classes)) {
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'paged' => $paged,
'year' => $archive_year,
'monthnum' => $archive_month,
'order' => 'DESC',
);
}else{
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'paged' => $paged,
'category_name' => $term->slug,
'order' => 'DESC',
);
}
$query = new WP_Query;
$myposts = $query->query($args);
if ( !in_array('search-no-results', $classes) ):
?>
>
$post) { ?>
max_num_pages > 1 ) {
echo "
" . paginate_links(array(
'total' => $query->max_num_pages,
'prev_text' => __('<', 'affiliate-booster'),
'next_text' => __('>', 'affiliate-booster')
)) . "
";
}
endif;
?>