'post', 'post_status' => 'publish', 'posts_per_page' => $numbre_of_posts, // phpcs:ignore WordPress.WP.PostsPerPage.posts_per_page_posts_per_page 'orderby' => 'date', 'ignore_sticky_posts' => true, 'category__in' => wp_get_post_categories( get_the_ID() ), 'post__not_in' => array( get_the_ID() ), 'tax_query' => array( // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_tax_query array( 'taxonomy' => 'post_format', 'field' => 'slug', 'terms' => array( 'post-format-quote' ), 'operator' => 'NOT IN', ), ), ); $bloghash_args = apply_filters( 'bloghash_related_posts_query_args', $bloghash_args ); $bloghash_posts = new WP_Query( $bloghash_args ); // No posts found. if ( ! $bloghash_posts->have_posts() ) { return; } $bloghash_related_posts_items_html = ''; $col = bloghash_option( 'related_posts_column' ); while ( $bloghash_posts->have_posts() ) : $bloghash_posts->the_post(); // Post items HTML markup. ob_start(); ?>