'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('date', $classes)) { $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'paged' => $paged, 'year' => $archive_year, 'monthnum' => $archive_month, 'order' => 'DESC', ); }elseif (in_array('search-no-results', $classes)) { get_template_part( 'templates/content', 'none' ); }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) { ?> ID);$alt_text = get_post_meta($img_id , '_wp_attachment_image_alt', true); ?>

max_num_pages > 1 ) { echo ""; } endif; ?>