You May Also Like

wp_get_post_categories($post->ID), 'posts_per_page' => 6, 'post__not_in' => array($post->ID) ); $rel_posts = new WP_Query($args); if( $rel_posts->have_posts() ) { while ($rel_posts->have_posts()) : $rel_posts->the_post(); ?>