$ticker_num, 'category_name' => $ticker_cat, 'ignore_sticky_posts' => true, 'orderby' => $ticker_sort, 'no_found_rows' => true ); if ($ticker_sort == 'title') { $args['order'] = 'ASC'; } $ticker_posts = new WP_Query($args); if ($ticker_posts->have_posts()) { while ($ticker_posts->have_posts()): $ticker_posts->the_post(); ?>