get_post_type(), 'post__not_in' => array( get_the_ID() ), 'ignore_sticky_posts' => 0, 'category__in' => wp_get_post_categories( get_the_ID() ), 'posts_per_page' => 4, 'no_found_rows' => true, 'orderby' => '', 'order' => '', ) ); /** * Filters the arguments of related posts. * * @since 1.0 */ $related_posts = new WP_Query( apply_filters( 'alpha_filter_related_posts_args', $args ) ); if ( $related_posts && $related_posts->have_posts() ) : $post_type_object = get_post_type_object( get_post_type() ); ?>