'post', 'posts_per_page' => absint($no_of_ticker_posts), 'post_status' => 'publish', 'no_found_rows' => 1, 'ignore_sticky_posts' => 1, 'orderby' => esc_attr($ticker_posts_orderby), 'order' => esc_attr($ticker_posts_order), ); // Check for category. if (!empty($ticker_posts_cat)) : $post_args['tax_query'] = array( array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $ticker_posts_cat, ), ); endif; $ticker_posts = new WP_Query($post_args); if ($ticker_posts->have_posts()) : $ticker_label_text = blogbull_get_option('ticker_label_text'); ?>
have_posts()) : $ticker_posts->the_post(); ?>