'post', 'post_status' => 'publish', 'posts_per_page' => Helper::get_option( 'ticker_post_number' ), // phpcs:ignore WordPress.WP.PostsPerPage.posts_per_page_posts_per_page 'ignore_sticky_posts' => true, 'tax_query' => [ // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query [ 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => [ 'post-format-quote' ], 'operator' => 'NOT IN', ], ], ]; $blogsy_ticker_categories = (array) Helper::get_option( 'ticker_category' ); if ( [] !== $blogsy_ticker_categories ) { $blogsy_args['category_name'] = implode( ', ', $blogsy_ticker_categories ); } $blogsy_args = apply_filters( 'blogsy_ticker_query_args', $blogsy_args ); $blogsy_posts = new WP_Query( $blogsy_args ); // No posts found. if ( ! $blogsy_posts->have_posts() ) { return; } $blogsy_ticker_items_html = ''; $blogsy_ticker_elements = (array) Helper::get_option( 'ticker_elements' ); $blogsy_ticker_type = Helper::get_option( 'ticker_type' ); while ( $blogsy_posts->have_posts() ) : $blogsy_posts->the_post(); // Post items HTML markup. ob_start(); ?>