array('car','bicycle'), 'posts_per_page'=> 20, 'page'=>$paged, ); $the_query = new WP_Query( $args); $num = $the_query->found_posts; if($the_query){ if ($the_query->have_posts()) : echo $num; while ($the_query->have_posts()) : $the_query->the_post(); echo '
  • '.get_the_title().'
  • '; endwhile; next_posts_link( 'Next', $the_query->max_num_pages ); previous_posts_link('Previous', $the_query->max_num_pages ); else : $return_string = 'no result'; endif; wp_reset_query(); wp_reset_postdata(); } ?>