Showing related posts from the same categoryIf you want the Related Posts to only include posts from the same category as the current post, you can’t…