How to show related posts articles

If you want to show related category posts articles on the single page, then use this query loop arguments.

$related_query = new WP_Query(array(
‘post_type’ => ‘post’,
‘category__in’ => wp_get_post_categories(get_the_ID()),
‘post__not_in’ => array(get_the_ID()),
‘posts_per_page’ => 4,
‘orderby’ => ‘date’,
));