'post', 'post_status' => 'publish', 'posts_per_page' => bloghash_option( 'pyml_post_number' ), // phpcs:ignore WordPress.WP.PostsPerPage.posts_per_page_posts_per_page 'order' => $bloghash_pyml_order[1], 'orderby' => $bloghash_pyml_order[0], 'ignore_sticky_posts' => true, ); $tax_query = array( array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote' ), 'operator' => 'NOT IN', ), ); $bloghash_pyml_categories = array_filter( array_map( 'absint', (array) bloghash_option( 'pyml_category' ) ) ); // If categories are specified if ( ! empty( $bloghash_pyml_categories ) ) { $tax_query[] = array( 'taxonomy' => 'category', 'field' => 'term_id', 'terms' => $bloghash_pyml_categories, 'operator' => 'IN', ); } $bloghash_args['tax_query'] = $tax_query; $bloghash_args = apply_filters( 'bloghash_pyml_query_args', $bloghash_args ); $bloghash_posts = new WP_Query( $bloghash_args ); // No posts found. if ( ! $bloghash_posts->have_posts() ) { return; } // $bloghash_pyml_bgs_html = ''; $bloghash_pyml_items_html = ''; $bloghash_pyml_elements = (array) bloghash_option( 'pyml_elements' ); $bloghash_classes = bloghash_template_part_column_classes( $bloghash_args['posts_per_page'] ); while ( $bloghash_posts->have_posts() ) : $bloghash_posts->the_post(); // Post items HTML markup. ob_start(); ?>